/* Veltrion Web Platform Phase 27 - Service Dock UX */
:root {
    --v27-gold: #e8b962;
    --v27-red: #c43d2d;
    --v27-bg: rgba(12, 9, 8, 0.78);
    --v27-line: rgba(232, 185, 98, 0.18);
    --v27-text: rgba(255, 241, 219, 0.92);
    --v27-muted: rgba(255, 232, 200, 0.62);
}

.v27-service-dock {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: clamp(22px, 3vw, 44px) 0;
}

.v27-container {
    width: min(100% - clamp(28px, 4vw, 64px), 1440px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(18px, 2.2vw, 32px);
    align-items: stretch;
}

.v27-command-panel,
.v27-side-card {
    border: 1px solid var(--v27-line);
    background:
        radial-gradient(circle at 20% 0%, rgba(196, 61, 45, 0.16), transparent 32%),
        radial-gradient(circle at 80% 20%, rgba(232, 185, 98, 0.13), transparent 28%),
        linear-gradient(145deg, rgba(17, 12, 11, 0.9), rgba(28, 20, 17, 0.72));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
}

.v27-command-panel {
    border-radius: 28px;
    padding: clamp(18px, 2vw, 30px);
    overflow: hidden;
}

.v27-command-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 22px;
}

.v27-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--v27-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.v27-eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--v27-gold));
}

.v27-command-head h2 {
    margin: 8px 0 8px;
    color: var(--v27-text);
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.v27-command-head p {
    margin: 0;
    color: var(--v27-muted);
    font-size: 14px;
    line-height: 1.72;
}

.v27-account-chip {
    min-width: 190px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    align-items: center;
    border: 1px solid rgba(232, 185, 98, 0.20);
    border-radius: 18px;
    padding: 13px 15px;
    background: rgba(0, 0, 0, 0.26);
}

.v27-chip-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #777;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
    grid-row: span 2;
}

.v27-account-chip.is-online .v27-chip-dot {
    background: #6ee78d;
    box-shadow: 0 0 18px rgba(110, 231, 141, 0.45), 0 0 0 4px rgba(110, 231, 141, 0.10);
}

.v27-account-chip strong {
    color: var(--v27-text);
    font-size: 14px;
}

.v27-account-chip small {
    color: var(--v27-muted);
    font-size: 12px;
}

.v27-priority-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.v27-launch-card,
.v27-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 118px;
    text-decoration: none;
    color: var(--v27-text);
    border: 1px solid rgba(232, 185, 98, 0.14);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    border-radius: 20px;
    padding: 16px;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.v27-launch-card::after,
.v27-service-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -55% 20%;
    height: 90px;
    background: radial-gradient(circle, rgba(232, 185, 98, 0.20), transparent 68%);
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
}

.v27-launch-card:hover,
.v27-service-card:hover,
.v27-launch-card:focus-visible,
.v27-service-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(232, 185, 98, 0.38);
    background: linear-gradient(145deg, rgba(232, 185, 98, 0.10), rgba(255, 255, 255, 0.03));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.v27-launch-card:hover::after,
.v27-service-card:hover::after {
    opacity: 1;
}

.v27-launch-card--game {
    border-color: rgba(232, 185, 98, 0.36);
    background:
        radial-gradient(circle at 40% 10%, rgba(255, 219, 130, 0.22), transparent 38%),
        linear-gradient(145deg, rgba(120, 29, 22, 0.82), rgba(50, 20, 15, 0.72));
}

.v27-launch-kicker {
    color: var(--v27-gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.v27-launch-card strong,
.v27-service-card strong,
.v27-side-card strong {
    display: block;
    color: var(--v27-text);
    font-size: 18px;
    line-height: 1.2;
}

.v27-launch-card small,
.v27-service-card small {
    color: var(--v27-muted);
    font-size: 12px;
    line-height: 1.55;
}

.v27-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.v27-service-card {
    min-height: 124px;
}

.v27-service-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(232, 185, 98, 0.22);
    background: rgba(0, 0, 0, 0.22);
    color: var(--v27-gold);
    font-weight: 900;
    margin-bottom: 12px;
}

.v27-service-card b,
.v27-launch-card b {
    color: #ffe2a4;
    font-weight: 900;
}

.v27-side-panel {
    display: grid;
    gap: 14px;
}

.v27-side-card {
    border-radius: 24px;
    padding: 20px;
}

.v27-side-card p {
    color: var(--v27-muted);
    font-size: 13px;
    line-height: 1.72;
    margin: 10px 0 16px;
}

.v27-mini-list {
    display: grid;
    gap: 9px;
}

.v27-mini-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--v27-text);
    border: 1px solid rgba(232, 185, 98, 0.14);
    border-radius: 14px;
    padding: 11px 12px;
    background: rgba(0, 0, 0, 0.20);
}

.v27-mini-list a::after {
    content: "→";
    color: var(--v27-gold);
}

.v27-check-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}

.v27-check-list li {
    color: var(--v27-muted);
    font-size: 13px;
    line-height: 1.55;
    padding-left: 22px;
    position: relative;
}

.v27-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--v27-gold);
    box-shadow: 0 0 16px rgba(232, 185, 98, 0.5);
}

@media (max-width: 1180px) {
    .v27-container {
        grid-template-columns: 1fr;
    }

    .v27-side-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .v27-command-head {
        grid-template-columns: 1fr;
    }

    .v27-account-chip {
        width: 100%;
        min-width: 0;
    }

    .v27-priority-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v27-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v27-side-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .v27-container {
        width: min(100% - 28px, 1440px);
    }

    .v27-command-panel,
    .v27-side-card {
        border-radius: 20px;
    }

    .v27-priority-row,
    .v27-service-grid {
        grid-template-columns: 1fr;
    }

    .v27-launch-card,
    .v27-service-card {
        min-height: 102px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v27-launch-card,
    .v27-service-card,
    .v27-launch-card::after,
    .v27-service-card::after {
        transition: none !important;
    }
}
