.menu-editor {
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.menu-editor__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.menu-add {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.menu-add select {
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel-muted);
    color: var(--text);
}

.menu-add button {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    background: var(--accent-strong);
    color: #fff;
    cursor: pointer;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(5, 6, 10, 0.4);
    cursor: grab;
}

.menu-item.dragging {
    opacity: 0.5;
}

.menu-item__info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.drag-handle {
    cursor: grab;
    user-select: none;
    font-size: 0.9rem;
    color: var(--muted);
}

.menu-item__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    color: #f1f3ff;
}

.menu-item__actions {
    display: flex;
    gap: 0.35rem;
}

.icon-button,
.delete-button {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.delete-button {
    color: #ff6b6b;
}

.icon-button.danger {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.4);
}

.icon-popover {
    position: absolute;
    z-index: 30;
    background: #0a0c13;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    max-height: 260px;
    overflow: auto;
    width: 320px;
}

.icon-picker,
.icon-popover {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
}

.icon-picker button {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    color: #f1f3ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.icon-picker button:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
}

.icon-picker svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
}
.menu-editor {
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.menu-editor__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.menu-add {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.menu-add select {
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel-muted);
    color: var(--text);
}

.menu-add button {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    background: var(--accent-strong);
    color: #fff;
    cursor: pointer;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(5, 6, 10, 0.4);
    cursor: grab;
}

.menu-item.dragging {
    opacity: 0.5;
}

.menu-item__info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.drag-handle {
    cursor: grab;
}

.menu-item__actions {
    display: flex;
    gap: 0.4rem;
}

.icon-button,
.delete-button {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.delete-button {
    color: #ff6b6b;
}

.icon-picker,
.icon-popover {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
}

.icon-popover {
    position: absolute;
    z-index: 30;
    background: #0a0c13;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    max-height: 260px;
    overflow: auto;
    width: 320px;
}

.icon-picker button {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.icon-picker svg {
    width: 22px;
    height: 22px;
}
.status-menu {
    margin-top: 0.35rem;
}

.status-menu summary {
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--muted);
}

.status-actions {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.status-actions button {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 8px;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    text-align: left;
    white-space: nowrap;
}

.role-label {
    font-weight: 600;
}

:root {
    color-scheme: dark;
    --bg: #05060a;
    --panel: #111321;
    --panel-muted: #0b0d16;
    --text: #f4f5fb;
    --muted: #9ca3af;
    --accent: #46c9ff;
    --accent-strong: #7a5bff;
    --border: rgba(255, 255, 255, 0.08);
    --gradient: linear-gradient(120deg, rgba(70, 201, 255, 0.3), rgba(122, 91, 255, 0.3));
    --nav-gutter: clamp(12px, 4vw, 40px);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }
}

.narrow {
    width: min(700px, 90vw);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(5, 6, 10, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.site-header .container.header-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem var(--nav-gutter);
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    flex: 0 0 auto;
    margin-left: auto;
}

.nav-toggle span {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #fff;
    transform: translateX(-50%);
    border-radius: 999px;
    opacity: 0.9;
}

.nav-toggle span:nth-child(1) {
    top: 14px;
}

.nav-toggle span:nth-child(2) {
    top: 21px;
}

.nav-toggle span:nth-child(3) {
    top: 28px;
}

.primary-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: var(--nav-gutter);
    width: min(420px, calc(100vw - var(--nav-gutter) * 2));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(8, 10, 18, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.2s ease;
    text-align: left;
    max-height: min(600px, calc(100vh - 120px));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
    padding-bottom: 4.5rem;
    scroll-padding-bottom: 4.5rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.primary-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.primary-nav a {
    padding: 0.65rem 0.4rem;
    color: var(--muted);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    border-radius: 10px;
}

.primary-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.primary-nav .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    font-weight: 500;
    width: 100%;
}

.primary-nav::-webkit-scrollbar {
    width: 6px;
}

.primary-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.primary-nav.has-user-card {
    padding-top: 1rem;
}

.nav-user-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-user-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-user-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.nav-user-settings {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.nav-user-settings svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(122, 91, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.nav-user-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.nav-user-name {
    margin: 0;
    font-weight: 600;
}

.nav-user-status {
    font-size: 0.8rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #50e991;
    display: inline-flex;
}

.nav-user-logout button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-user-logout svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-user-balance {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-user-balance p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-user-balance .balance-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.nav-user-balance strong {
    font-size: 1.2rem;
}




.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.4rem 0 0.2rem;
}

.primary-nav .nav-link.is-active,
.primary-nav .nav-link:active {
    background: rgba(70, 201, 255, 0.18);
    color: var(--text);
}

.primary-nav .nav-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.primary-nav .nav-link.cta {
    gap: 0.55rem;
}

.primary-nav .cta {
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--accent-strong);
    color: #fff;
}

.language-switch {
    position: relative;
}

.brand-wrap .language-switch {
    margin-left: 0;
}

.brand-wrap .language-menu {
    left: 0;
    right: auto;
}

.language-button {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font-size: 0.8rem;
    cursor: pointer;
}

.language-button svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    opacity: 0.85;
}

.language-button .chevron {
    display: none;
}

.language-menu {
    position: absolute;
    right: 0;
    top: 110%;
    min-width: 180px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    padding: 0.4rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: 0.2s ease;
}

.language-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.currency-switch .currency-select {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.currency-switch select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.4rem 1.4rem 0.4rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.currency-switch select:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.currency-switch select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.service-price {
    color: #10b981;
    font-weight: 600;
}

/* Order Form */
.order-form-wrapper {
    margin-top: 1.25rem;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.04));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    display: none;
}

.order-form-wrapper.is-visible {
    display: block;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.order-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.order-form__field label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-form__minmax {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

.order-form__input,
.order-form__textarea {
    padding: 0.85rem 1rem;
    border: 2px solid rgba(99, 102, 241, 0.35);
    border-radius: 12px;
    background: rgba(15, 15, 35, 0.6);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.order-form__input:hover,
.order-form__textarea:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(15, 15, 35, 0.75);
}

.order-form__input:focus,
.order-form__textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(15, 15, 35, 0.85);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 4px 16px rgba(99, 102, 241, 0.2);
}

.order-form__input::placeholder,
.order-form__textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.order-form__input[readonly] {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    opacity: 0.7;
}

.order-form__textarea {
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
    line-height: 1.5;
}

.order-form__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(34, 197, 94, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
}

.order-form__total-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.order-form__total-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #34d399;
    text-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}

.order-form__submit {
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.order-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #7c7ff2, #9d6ff7);
}

.order-form__submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.order-form__submit-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.order-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.order-form__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #4b5563, #6b7280);
    color: #fff;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
}

.order-form__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.order-form__result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.order-form__result--success {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
}

.order-form__result--warning {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.order-form__result--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.order-form__result a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.order-form__result a:hover {
    opacity: 0.8;
}

.order-form__textarea--note {
    min-height: 40px;
    resize: vertical;
}

/* Order Tips Section */
.order-tips {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.order-tips__header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-tips__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.order-tips__item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.order-tips__icon {
    flex-shrink: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.order-tips__text {
    flex: 1;
}

.order-tips__text strong {
    color: var(--text);
    font-weight: 600;
}

/* Drip Feed Section */
.order-form__drip-feed {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.order-form__drip-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-form__toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted, #a0aec0);
}

.order-form__toggle-input {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    cursor: pointer;
}

.order-form__toggle-text {
    font-weight: 500;
}

.order-form__help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-form__help-icon:hover {
    background: rgba(99, 102, 241, 0.4);
    color: #fff;
}

.order-form__drip-fields {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.order-form__field--total-qty .order-form__input--readonly {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.3);
    color: #34d399;
    font-weight: 600;
}

.order-form__drip-info {
    margin-top: 0.75rem;
    padding: 0.6rem 0.8rem;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    font-size: 0.82rem;
    color: #a5b4fc;
    line-height: 1.4;
}

.order-form__drip-error {
    margin-top: 0.75rem;
    padding: 0.6rem 0.8rem;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    font-size: 0.82rem;
    color: #fca5a5;
    line-height: 1.4;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.currency-switch .chevron {
    position: absolute;
    right: 6px;
    width: 10px;
    height: 10px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    pointer-events: none;
    opacity: 0.8;
}

.language-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    color: var(--muted);
}

.language-menu a.active {
    background: rgba(70, 201, 255, 0.12);
    color: var(--text);
}

.language-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.language-menu .lang-code {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.hero {
    padding: 4rem 0;
    background: radial-gradient(circle at 0 0, rgba(70, 201, 255, 0.15), transparent 40%),
        radial-gradient(circle at 100% 0, rgba(122, 91, 255, 0.2), transparent 45%);
}

.hero-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}


.hero-copy {
    align-self: center;
    text-align: left;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin: 0 0 1rem;
}

.subtitle {
    color: var(--muted);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 500;
}

.btn.primary {
    background: var(--accent-strong);
    color: #fff;
}

.btn.ghost {
    border-color: var(--border);
    color: var(--text);
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn.minimal {
    padding: 0.45rem 0.9rem;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font-size: 0.85rem;
}

.btn.minimal:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.btn.oauth {
    gap: 0.5rem;
    background: #fff;
    color: #05060a;
    border-radius: 999px;
    border: none;
    font-weight: 600;
}

.btn.oauth svg {
    width: 20px;
    height: 20px;
}

.btn.oauth.ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-panel {
    padding: 2rem 0;
}

.admin-panel__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.admin-toolbar__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
}

.admin-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.5rem 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.admin-search input {
    border: none;
    background: transparent;
    color: var(--text);
    min-width: 230px;
}

.admin-search button {
    border: none;
    background: transparent;
    padding: 0.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-search svg {
    width: 16px;
    height: 16px;
    stroke: var(--muted);
    stroke-width: 1.4;
    fill: none;
}

.admin-export {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    padding: 0.45rem 1.2rem;
    cursor: pointer;
}

.export-dropdown {
    position: relative;
}

.export-dropdown summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    padding: 0.45rem 1.2rem;
}

.export-form {
    position: absolute;
    right: 0;
    top: 120%;
    background: #0a0c13;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 220px;
}

.export-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: var(--muted);
}

.export-form input {
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel-muted);
    color: var(--text);
}

.export-form button {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--accent-strong);
    color: #fff;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
}

.admin-subtitle {
    color: var(--muted);
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.filter-pill a {
    color: var(--accent);
}

.admin-alert {
    background: rgba(70, 201, 255, 0.15);
    border: 1px solid rgba(70, 201, 255, 0.4);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.password-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.password-chip code {
    background: rgba(5, 6, 10, 0.8);
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
}

.password-chip button {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 10px;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
}

.bulk-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.bulk-actions {
    display: flex;
    gap: 0.5rem;
}

.bulk-actions button {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    background: var(--panel-muted);
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
}

.service-tree__hint {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.service-tree {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-node {
    background: #090c13;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.service-node--platform {
    background: rgba(255, 255, 255, 0.02);
    border-style: dashed;
}

.service-node__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.service-node__summary,
.classification-node__summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.service-node__summary h2,
.service-node__summary h3 {
    margin: 0;
}

.service-node__summary p {
    margin: 0.35rem 0 0;
}

.service-node__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.service-node__drag {
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    flex-shrink: 0;
}

.service-node__drag:active {
    cursor: grabbing;
}

.service-node.dragging,
.classification-node.dragging {
    opacity: 0.6;
}

.service-node__children {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-node__children-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.service-branch {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.classification-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.classification-head__actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

[data-service-collapse-toggle] {
    white-space: nowrap;
}

.service-toggle-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
    color: var(--text);
}

.service-toggle-icon__glyph {
    pointer-events: none;
    font-size: 1rem;
}

.service-node__toggle {
    margin-left: auto;
}

.classification-node__toggle {
    margin-left: auto;
}

.service-items-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.service-items-head--nested {
    margin-top: 0.75rem;
}

.is-collapsed {
    display: none !important;
}

.classification-tree {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.classification-node {
    --depth: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.55rem 0.7rem;
    background: rgba(8, 11, 19, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: calc((var(--depth) - 1) * 1.1rem);
}

.classification-node__header {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.classification-node__summary h4 {
    margin: 0;
    font-size: 1rem;
}

.classification-node__summary p {
    margin: 0.2rem 0 0;
}

.classification-node__drag {
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    flex-shrink: 0;
}

.classification-node__drag:active {
    cursor: grabbing;
}

.classification-node__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.classification-node__children {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-left: 0.85rem;
    border-left: 1px dashed rgba(255, 255, 255, 0.12);
}

/* Inactive states */
.service-node--inactive,
.classification-node--inactive {
    opacity: 0.5;
}

.icon-button.warning {
    color: #ff9800 !important;
    background: rgba(255, 152, 0, 0.1);
}

.icon-button.warning:hover {
    background: rgba(255, 152, 0, 0.2);
}

/* Move modal */
.move-modal__content {
    margin: 1rem 0;
}

.move-modal__select {
    background: #1a1d24;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.move-modal__select option {
    padding: 10px 8px;
    background: #1a1d24;
    color: #fff;
}

.move-modal__select option:hover,
.move-modal__select option:checked {
    background: #2d3748;
}

.move-modal__loading,
.move-modal__empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.service-items-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.service-items-head--nested {
    margin-top: 0.75rem;
}

.service-items {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.5rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.service-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0.6rem 0.75rem;
    background: rgba(10, 13, 22, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.service-item__header {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.service-item__summary h4 {
    margin: 0;
    font-size: 1rem;
    color: #e5e7eb; /* light gray for better readability */
}

.service-item__summary p {
    margin: 0.2rem 0 0;
}

.service-item__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.service-item__drag {
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    flex-shrink: 0;
}

.service-item__drag:active {
    cursor: grabbing;
}

.service-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.service-item--inactive {
    opacity: 0.6;
}

.service-item--inactive .service-item__summary h4 {
    text-decoration: line-through;
}

.service-empty-actions {
    display: none;
}

.service-empty-actions > div,
.service-empty-actions--nested,
.service-empty-actions--nested > div {
    display: none;
}

.service-items {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.5rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.service-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0.6rem 0.75rem;
    background: rgba(10, 13, 22, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.service-item__header {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.service-item__summary h4 {
    margin: 0;
    font-size: 1rem;
}

.service-item__summary p {
    margin: 0.2rem 0 0;
}

.service-item__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.service-item__drag {
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    flex-shrink: 0;
}

.service-item__drag:active {
    cursor: grabbing;
}

.service-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.classification-empty {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

.platform-card.empty {
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 1.1rem;
    text-align: center;
    color: var(--muted);
}

.service-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem 1.2rem;
}

.service-form__grid,
.service-form__grid--two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem 1rem;
}
.service-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.service-form__row--three > label {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}
.service-field--narrow input,
.service-field--narrow select {
    width: 100%;
}
.service-inline {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.service-inline__group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.service-inline__group input {
    max-width: 160px;
}
.service-inline__group select {
    max-width: 160px;
}

.service-form__section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.01);
}

.service-form__section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.service-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.service-form input {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
}

.service-form textarea,
.service-form select {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font-family: inherit;
    resize: vertical;
}

.service-form textarea {
    min-height: 110px;
}

.service-form__full {
    grid-column: 1 / -1;
}

.service-form small {
    font-size: 0.75rem;
    color: var(--muted);
}

.service-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.icon-field {
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.icon-field__label {
    font-size: 0.85rem;
    font-weight: 600;
}

.icon-field__controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.icon-field__preview {
    min-width: 180px;
    min-height: 64px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.icon-preview__glyph svg {
    width: 32px;
    height: 32px;
    display: block;
}

.icon-preview__label {
    font-weight: 600;
    color: var(--text);
}

.icon-field__buttons {
    display: flex;
    gap: 0.5rem;
}

.icon-picker-modal {
    z-index: 50;
}

.icon-picker__controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.icon-picker__search input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel);
    padding: 0.65rem 1rem;
    color: var(--text);
}

.icon-picker__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text);
    background: transparent;
}

.chip.is-active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.icon-picker__body {
    max-height: 420px;
    overflow: auto;
    padding-right: 0.25rem;
}

.icon-picker__results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.icon-picker__item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.icon-picker__item.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(121, 80, 255, 0.4);
}

.icon-picker__item-media svg {
    width: 32px;
    height: 32px;
    display: block;
}

.icon-picker__item-label {
    font-size: 0.85rem;
}

.icon-picker__empty {
    text-align: center;
    margin-top: 1rem;
}

.service-node__icon,
.classification-node__icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.service-node__icon svg,
.classification-node__icon svg {
    width: 32px;
    height: 32px;
}

.platform-browser {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.platform-inline-detail {
    margin-top: 0.75rem;
}

.platform-card {
    background: #0a0c13;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
}

.platform-card__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-card__icon svg {
    width: 28px;
    height: 28px;
}

.platform-card__head h2 {
    margin: 0.1rem 0;
    font-size: 1.5rem;
}

.platform-card__meta {
    color: var(--muted);
    margin: 0;
}

.platform-card__empty {
    color: var(--muted);
}

.platform-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.55rem;
    padding: 0.25rem 0.25rem 0.25rem 0;
    justify-content: center;
}

.platform-grid.filtered {
    justify-content: center;
}

.platform-grid .platform-chip {
    align-items: center;
    justify-content: center;
}

.platform-grid.filtered .platform-chip:not(.is-active) {
    display: none;
}

.platform-chip {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.65rem 0.45rem;
    color: var(--text);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 100px;
    max-width: 150px;
    flex: 0 1 calc(33.333% - 0.5rem);
    transition: border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.platform-chip:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.platform-chip.is-active {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(121, 80, 255, 0.15);
}

.platform-chip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.platform-chip__icon svg {
    width: 44px;
    height: 44px;
    display: block;
}

.platform-chip__label {
    font-weight: 600;
    font-size: 0.95rem;
}

.platform-browser__detail {
    background: #0a0c13;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem 1.2rem;
    min-height: 280px;
}

.platform-detail__placeholder {
    text-align: left;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.platform-detail-card h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-detail__icon svg {
    width: 32px;
    height: 32px;
}

.platform-detail__meta {
    color: var(--muted);
    margin: 0.25rem 0 0;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.topic-list--nested {
    margin-top: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px dashed rgba(255, 255, 255, 0.12);
}

/* Topic item container */
.topic-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topic-item .topic-chip {
    flex-shrink: 0;
}

/* Multi-column topic layouts - using flexbox for center alignment */
.topic-list.topic-list--cols-2,
.topic-list.topic-list--cols-3,
.topic-list.topic-list--cols-4,
.topic-list.topic-list--cols-5,
.topic-list.topic-list--cols-6 {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.topic-list.topic-list--cols-2 > .topic-item { flex: 0 1 calc(50% - 0.25rem); }
.topic-list.topic-list--cols-3 > .topic-item { flex: 0 1 calc(33.333% - 0.34rem); }
.topic-list.topic-list--cols-4 > .topic-item { flex: 0 1 calc(25% - 0.375rem); }
.topic-list.topic-list--cols-5 > .topic-item { flex: 0 1 calc(20% - 0.4rem); }
.topic-list.topic-list--cols-6 > .topic-item { flex: 0 1 calc(16.666% - 0.42rem); }

/* When a topic item is active/expanded in multi-column, take full width */
.topic-list.topic-list--cols-2 > .topic-item.is-expanded,
.topic-list.topic-list--cols-3 > .topic-item.is-expanded,
.topic-list.topic-list--cols-4 > .topic-item.is-expanded,
.topic-list.topic-list--cols-5 > .topic-item.is-expanded,
.topic-list.topic-list--cols-6 > .topic-item.is-expanded {
    flex: 0 0 100%;
}

/* Responsive: reduce columns on smaller screens */
@media (max-width: 1200px) {
    .topic-list.topic-list--cols-6 > .topic-item,
    .topic-list.topic-list--cols-5 > .topic-item { flex: 0 1 calc(25% - 0.375rem); }
}
@media (max-width: 900px) {
    .topic-list.topic-list--cols-6 > .topic-item,
    .topic-list.topic-list--cols-5 > .topic-item,
    .topic-list.topic-list--cols-4 > .topic-item { flex: 0 1 calc(33.333% - 0.34rem); }
}
@media (max-width: 700px) {
    .topic-list.topic-list--cols-6 > .topic-item,
    .topic-list.topic-list--cols-5 > .topic-item,
    .topic-list.topic-list--cols-4 > .topic-item,
    .topic-list.topic-list--cols-3 > .topic-item { flex: 0 1 calc(50% - 0.25rem); }
}
@media (max-width: 480px) {
    .topic-list.topic-list--cols-6 > .topic-item,
    .topic-list.topic-list--cols-5 > .topic-item,
    .topic-list.topic-list--cols-4 > .topic-item,
    .topic-list.topic-list--cols-3 > .topic-item,
    .topic-list.topic-list--cols-2 > .topic-item { flex: 0 0 100%; }
}

.service-list {
    margin-top: 1rem;
}

.topic-chip {
    width: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0.65rem;
    color: var(--text);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.topic-chip:hover {
    border-color: var(--primary);
}

.topic-chip.is-active {
    border-color: var(--primary);
    background: rgba(121, 80, 255, 0.08);
}

.topic-chip__icon svg {
    width: 24px;
    height: 24px;
}

.topic-chip__label {
    font-weight: 600;
    font-size: 1.25rem;
}

.topic-children {
    display: none;
}

.topic-children.is-visible {
    display: block;
}

.topic-list.is-filtered > .topic-chip:not(.is-active) {
    display: none;
}

/* When using topic-item wrapper */
.topic-list.is-filtered > .topic-item:not(.is-expanded) {
    display: none;
}

.service-filters {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    padding: 0.5rem 0;
    justify-content: center;
}

.service-filters.is-visible {
    display: flex;
}

.service-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    min-width: 52px;
}

.service-filter:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-filter input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    margin: 0;
}

.service-filter span {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    text-align: center;
}

.service-filter input[type="checkbox"]:checked + span {
    color: var(--text);
    font-weight: 600;
}

.service-filter:has(input:checked) {
    background: rgba(var(--accent-rgb, 99, 102, 241), 0.15);
    border-color: var(--accent);
}

.filter-notify {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    margin-top: 0;
    padding: 0 0.8rem;
}

.filter-notify.is-visible {
    opacity: 1;
    max-height: 120px;
    margin-top: 0.5rem;
    padding: 0.6rem 0.8rem;
}

.filter-notify b,
.filter-notify strong {
    color: var(--text);
    font-weight: 600;
}

.service-list {
    margin-top: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 0;
}

.service-list.is-visible {
    display: flex;
}

.service-item-line {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.75rem;
}

.service-item-line--filtered {
    display: none !important;
}

.service-item-line--hidden {
    display: none !important;
}

/* Priority service styling - elegant gold/amber accent */
.service-item-line--priority {
    position: relative;
}

.service-item-line--priority .service-chip {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(234, 179, 8, 0.4);
    border-bottom: none;
}

.service-item-line--priority .service-chip:hover {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(251, 191, 36, 0.18) 100%);
    border-color: rgba(234, 179, 8, 0.6);
}

.service-item-line--priority .service-desc {
    border-color: rgba(234, 179, 8, 0.3);
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
}

.service-desc__priority-row {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(251, 191, 36, 0.12) 100%) !important;
}

.service-desc__priority-note {
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    padding: 10px 12px !important;
}

.service-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin: 12px 0 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border: 1px dashed rgba(59, 130, 246, 0.4);
    border-radius: 8px;
    color: #60a5fa;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-show-more:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    color: #93c5fd;
}

.service-show-more svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.service-show-more:hover svg {
    transform: translateY(2px);
}

.service-chip {
    width: 100%;
    border-radius: 12px 12px 0 0;
    background: rgba(6, 78, 59, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-bottom: none;
    padding: 0.5rem 0.7rem;
    color: #e8ffe8;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.service-chip__id {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    color: #b3ffb3;
    font-size: 0.9rem;
    font-weight: 700;
}

.service-chip__label {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.35;
}

.service-chip:not(.is-active) {
    border-radius: 12px;
    border-bottom: 1px solid rgba(34, 197, 94, 0.25);
}

.service-chip.is-active {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.22);
}

.service-desc {
    display: none;
    color: rgba(205, 235, 212, 0.9);
    font-size: 0.82rem;
    line-height: 1.4;
    padding: 0.6rem 0.75rem 0.7rem;
    background: rgba(6, 78, 59, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-top: 0;
}

.service-desc.is-visible {
    display: block;
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.08);
}

.service-desc__table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.service-desc__table td {
    padding: 0.2rem 0.5rem 0.2rem 0;
    vertical-align: top;
    border: none;
    color: rgba(255, 255, 255, 0.7);
}

.service-desc__table td:first-child {
    padding-right: 1.5rem;
}

.service-desc__long {
    white-space: pre-wrap;
}

.service-desc__time-row {
    background: rgba(59, 130, 246, 0.15) !important;
    border-left: 3px solid #3b82f6 !important;
}

.service-desc__time-note {
    padding: 0.6rem 0.85rem !important;
    color: #60a5fa !important;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Mobile viewport fixes - full width on narrow screens */
@media (max-width: 768px) {
    .platform-detail-card,
    .topic-list,
    .service-list,
    .order-form-wrapper,
    .topic-item,
    .service-item-line {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .topic-list--nested {
        padding-left: 0.5rem;
    }
    
    .service-chip {
        width: 100%;
        text-align: left;
        padding: 0.6rem 0.8rem;
    }
    
    .service-chip__label {
        font-size: 0.85rem;
        word-break: break-word;
    }
    
    .service-desc {
        width: 100%;
        padding: 0.5rem 0.6rem;
    }
    
    .service-desc__table {
        width: 100%;
        table-layout: fixed;
    }
    
    .service-desc__table td {
        word-break: break-word;
        padding: 0.35rem 0.5rem;
    }
    
    .service-desc__time-note {
        font-size: 0.82rem;
    }
    
    .order-form {
        width: 100%;
        padding: 0.8rem;
    }
    
    .order-form__input,
    .order-form__textarea {
        width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .platform-inline-detail {
        padding: 0;
    }
}

.service-move-form {
    background: none;
    border: none;
    padding: 0;
}

.service-move-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 720px) {
    .service-move-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.2rem;
    }
}

.service-move-summary {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.2rem 1.4rem;
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.15), rgba(33, 150, 243, 0.05));
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.service-move-summary__eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin: 0;
}

.service-move-summary__value {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.service-move-section {
    height: 100%;
}

.service-move-field span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.service-select-wrapper {
    position: relative;
}

.service-select-wrapper select {
    width: 100%;
    appearance: none;
    padding-right: 2.5rem;
}

.service-select-caret {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Service Pricing Cards - Modern Design */
.service-pricing-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.service-pricing-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.service-pricing-card__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-pricing-card__body {
    padding: 0.85rem 1rem;
}

.service-pricing-card__body input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
}

.service-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .service-pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Sync Toggle */
.service-sync-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.service-sync-toggle input {
    display: none;
}

.service-sync-toggle__track {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    position: relative;
    transition: background 0.2s ease;
}

.service-sync-toggle__track::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
}

.service-sync-toggle input:checked + .service-sync-toggle__track {
    background: var(--accent, #6200ea);
}

.service-sync-toggle input:checked + .service-sync-toggle__track::after {
    transform: translateX(16px);
}

.service-sync-toggle__label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sync Field Container */
.service-sync-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.service-sync-field__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Switch Label for Service Modal */
.switch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.switch-label span {
    font-size: 0.9rem;
    color: var(--text);
}

.switch-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: 0.3s ease;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s ease;
}

.switch input:checked + .slider {
    background: var(--accent, #6200ea);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

.speed-sort-field {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.speed-sort-field small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.service-sync-field__header > span {
    font-size: 0.85rem;
    color: var(--muted);
}

.service-sync-field--synced select,
.service-sync-field--synced input {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.02);
}

/* Pricing Row */
.service-pricing-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.service-pricing-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 100px;
}

.service-pricing-field span {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-pricing-field input {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font-size: 0.95rem;
}

.service-pricing-field--full {
    min-width: 100%;
}

.service-pricing-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    padding: 0.5rem 0.75rem;
    background: rgba(98, 0, 234, 0.15);
    border-radius: 12px;
    min-width: 120px;
}

.service-pricing-preview__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.service-pricing-preview__cost {
    font-size: 0.7rem;
    color: var(--muted);
}

/* Cost info display */
.service-pricing-cost-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.service-pricing-cost-info__label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.service-pricing-cost-info__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2196f3;
}

/* Sync/Manual modes */
.service-pricing-sync,
.service-pricing-manual {
    transition: opacity 0.2s ease;
}

/* Disabled state for synced inputs */
.service-pricing-card--synced .service-pricing-card__body input {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Admin Toolbar Buttons */
.admin-toolbar__buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Template Selector in Service Modal */
.service-template-selector {
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.1), rgba(33, 150, 243, 0.05));
    border: 1px solid rgba(98, 0, 234, 0.2);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.service-template-selector label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.service-template-selector label > span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.service-template-selector select {
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font-size: 0.9rem;
}

.service-template-selector small {
    margin-top: 0.35rem;
    display: block;
}

/* Template Manager Modal */
.template-manager {
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.template-manager__content {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.5rem;
}

.template-list__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.75rem;
}

.template-list__header span {
    font-weight: 600;
    font-size: 0.95rem;
}

.template-list__items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.template-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: background 0.15s ease;
}

.template-list__item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.template-list__item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.template-list__item-info strong {
    font-size: 0.95rem;
}

.template-list__item-info small {
    color: var(--muted);
    font-size: 0.8rem;
}

.template-list__item-actions {
    display: flex;
    gap: 0.5rem;
}

.template-list__empty {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Template Form */
.template-form__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.template-form__header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.template-form__grid {
    display: grid;
    gap: 0.85rem;
}

.template-form__grid--two {
    grid-template-columns: repeat(2, 1fr);
}

.template-form__grid--three {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 700px) {
    .template-form__grid--two,
    .template-form__grid--three {
        grid-template-columns: 1fr;
    }
}

.template-form__full {
    grid-column: 1 / -1;
}

.template-form__grid label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.template-form__grid input,
.template-form__grid select {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
}

.template-form__section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.01);
}

.template-form__section-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.85rem 0;
    color: var(--text);
}

.template-form__actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1rem;
}

.template-inline {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.template-inline__group {
    display: flex;
    gap: 0.5rem;
}

.template-inline__group input {
    flex: 1;
    min-width: 60px;
}

.template-inline__group select {
    min-width: 90px;
}

.template-sync-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.template-sync-toggle small {
    color: var(--muted);
    font-size: 0.75rem;
}

.template-sync-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.required {
    color: #ef4444;
}

/* Display Columns Field */
.display-columns-field {
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.01);
}

.display-columns-field label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.display-columns-field label > span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.display-columns-field select {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    max-width: 200px;
}

.service-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 14, 0.78);
    display: flex;
    justify-content: flex-end;
    padding: 1.25rem;
    z-index: 1200;
}

.service-modal--center {
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1rem;
}

.service-modal[hidden] {
    display: none;
}

.service-modal__panel {
    width: min(520px, 100%);
    background: #0b0f1c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    max-height: min(92vh, 960px);
    overflow-y: auto;
}

.service-modal__panel--wide {
    width: min(720px, 100%);
}

.service-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

@media (max-width: 640px) {
    .service-modal {
        padding: 0.5rem;
    }

    .service-modal__panel {
        border-radius: 22px;
    }
}

body.modal-open {
    overflow: hidden;
}

.meta-text {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0.4rem 0 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.empty-state {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--muted);
}

.table-card {
    background: #0a0c13;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-data-table th,
.admin-data-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.admin-data-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
}

.sort-link.active {
    color: var(--text);
}

.sort-link.active {
    color: #fff;
}

.cell-user {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    white-space: nowrap;
}

.cell-user .user-name {
    font-weight: 600;
}

.cell-user .user-email {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.email-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 600;
}

.email-flag.google {
    background: #fbbc05;
    color: #111;
}

.email-flag.verified {
    background: #1ec995;
    color: #05060a;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
}

.cell-meta {
    white-space: nowrap;
}

.cell-meta .meta-sub {
    font-size: 0.75rem;
    color: var(--muted);
}

.inline-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.inline-form input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel-muted);
    color: var(--text);
}

.inline-form button {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    white-space: nowrap;
}

.inline-form.compact {
    flex-direction: row;
    align-items: center;
}

.inline-form.compact input {
    width: 60px;
    text-align: center;
}

.inline-form.compact button {
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
}

.action-menu summary {
    cursor: pointer;
    color: var(--muted);
    white-space: nowrap;
}

.action-menu[open] summary {
    color: var(--text);
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.action-section {
    padding-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-section p {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.empty-state {
    text-align: center;
    color: var(--muted);
}

.table-footer {
    margin-top: 1rem;
}

.login-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-submit svg {
    width: 18px;
    height: 18px;
    stroke: #05060a;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.register-inline {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.register-inline svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

label span {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: var(--muted);
}

input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--panel-muted);
    color: var(--text);
}

.input-with-action {
    position: relative;
}

.input-with-action input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
}

.password-toggle span {
    font-size: 0.85rem;
}

.password-toggle.is-active {
    border-color: var(--accent);
    color: var(--accent);
}

.form-stub button:not(.password-toggle) {
    border: none;
    background: var(--accent);
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    color: #05060a;
    font-weight: 600;
    cursor: pointer;
}

.helper-link {
    color: var(--accent);
    font-size: 0.85rem;
}

.error {
    color: #ff9f9f;
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.section {
    padding: 4rem 0;
}

.section.muted {
    background: var(--panel-muted);
}

.flash {
    width: min(600px, 90vw);
    margin: 1rem auto;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(70, 201, 255, 0.08);
    color: var(--text);
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-catalog {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.catalog-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.5rem;
    background: rgba(10, 12, 19, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.catalog-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.catalog-platform {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.catalog-platform__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.catalog-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.catalog-list--nested {
    margin-top: 0.35rem;
    padding-left: 1.1rem;
    border-left: 1px dashed rgba(255, 255, 255, 0.12);
    gap: 0.25rem;
}

.catalog-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.catalog-list--nested li {
    border-bottom: none;
    padding: 0.25rem 0;
}

.catalog-list li:last-child {
    border-bottom: none;
}

.catalog-list li.empty {
    color: var(--muted);
    font-style: italic;
}

.catalog-empty {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: var(--muted);
}

.pill {
    justify-self: start;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
}

.pill.muted {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--muted);
}

.form-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.form-stub {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.register-form {
    gap: 1.2rem;
}

.oauth-note {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.oauth-note p {
    color: var(--muted);
    max-width: 360px;
}

.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: #05060a;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

/* Alert messages */
.alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: #f85149;
}

.alert-success {
    background: rgba(35, 134, 54, 0.15);
    border: 1px solid rgba(35, 134, 54, 0.3);
    color: #3fb950;
}

.alert-warning {
    background: rgba(210, 153, 34, 0.15);
    border: 1px solid rgba(210, 153, 34, 0.3);
    color: #d29922;
}

.alert-info {
    background: rgba(56, 139, 253, 0.15);
    border: 1px solid rgba(56, 139, 253, 0.3);
    color: #388bfd;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .table-scroll {
        border-radius: 12px;
    }

    .header-row {
        flex-wrap: wrap;
    }

    .brand-wrap {
        width: auto;
        justify-content: flex-start;
    }

    .primary-nav {
        right: var(--nav-gutter);
        left: auto;
        width: min(420px, calc(100vw - var(--nav-gutter) * 2));
    }

    .language-switch {
        width: 100%;
    }

    .member-card {
        flex-direction: column;
        align-items: flex-start;
    }
}


