:root {
    --bg-dark: #131314;
    --bg-main: #1e1f22;
    --bg-surface: #282a2c;
    --bg-surface-hover: #303134;
    --bg-elevated: #3c4043;
    --text-primary: #e3e3e3;
    --text-secondary: #c4c7c5;
    --accent-bg: #004a77;
    --accent-text: #c2e7ff;
    --accent-solid: #8ab4f8;
    --green: #81c995;
    --yellow: #fdd663;
    --orange: #fcad70;
    --red: #f28b82;
    --purple: #d7aefb;
    --border-radius-main: 16px;
    --border-radius-card: 12px;
    --border-radius-btn: 16px;
    --font-family: 'Inter', sans-serif;
    --transition-speed: 0.2s;
    --border-color: #444746;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    font-size: 14px;
}

.material-symbols-outlined {
    font-size: 20px;
    color: var(--text-secondary);
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

.hidden {
    display: none !important;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    height: 64px;
    background-color: var(--bg-dark);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 240px;
    padding-left: 8px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.admin-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--accent-bg);
    color: var(--accent-text);
    padding: 3px 8px;
    border-radius: 6px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-surface);
    border-radius: 24px;
    padding: 0 16px;
    height: 48px;
    flex-grow: 1;
    max-width: 720px;
    margin: 0 24px;
    transition: background-color var(--transition-speed);
}

.search-bar:focus-within {
    background-color: var(--bg-surface-hover);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-family);
    flex-grow: 1;
    padding: 0 16px;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 8px;
}

.icon-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    text-decoration: none;
}

.icon-btn:hover {
    background-color: var(--bg-surface-hover);
}

.icon-btn .material-symbols-outlined {
    color: var(--text-primary);
}

.main-layout {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

.sidebar {
    width: 256px;
    min-width: 256px;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 16px 8px;
    background-color: var(--bg-dark);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    height: 36px;
    margin-bottom: 2px;
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color var(--transition-speed);
    white-space: nowrap;
    cursor: pointer;
}

.nav-item:hover {
    background-color: var(--bg-surface);
}

.nav-item.active {
    background-color: var(--accent-bg);
    color: var(--accent-text);
}

.nav-item.active .material-symbols-outlined {
    color: var(--accent-text);
}

.nav-divider {
    height: 1px;
    margin: 8px 0;
    background-color: var(--border-color);
    opacity: 0.3;
}

.nav-bottom-pinned {
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px;
    margin-top: auto;
}

.sidebar-footer-text {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.6;
}

.content-area {
    flex-grow: 1;
    background-color: var(--bg-main);
    border-radius: var(--border-radius-main) 0 0 0;
    padding: 24px 32px;
    overflow-y: auto;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.content-header h1 {
    font-size: 22px;
    font-weight: 400;
}

.section {
    margin-bottom: 32px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.section:nth-child(1) { animation-delay: 0.05s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.15s; }
.section:nth-child(4) { animation-delay: 0.2s; }
.section:nth-child(5) { animation-delay: 0.25s; }

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    cursor: pointer;
    user-select: none;
}

.section-header h2 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.section-header .material-symbols-outlined {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.section.collapsed .section-header .material-symbols-outlined {
    transform: rotate(-90deg);
}

.section.collapsed > *:not(.section-header) {
    display: none !important;
}

.view-toggles {
    margin-left: auto;
    display: flex;
    background-color: var(--bg-surface);
    border-radius: 20px;
    padding: 2px;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.toggle-btn:hover {
    background-color: var(--bg-surface-hover);
}

.toggle-btn.active {
    background-color: var(--accent-bg);
    color: var(--accent-text);
}

.toggle-btn.active .material-symbols-outlined {
    color: var(--accent-text);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-card);
    padding: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color var(--transition-speed), transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.card:hover {
    background-color: var(--bg-surface-hover);
    transform: translateY(-4px) scale(1.01);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-icon {
    width: 44px;
    height: 44px;
    background-color: var(--bg-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon .material-symbols-outlined {
    font-size: 22px;
    color: var(--accent-solid);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.card-banner {
    padding: 0;
    overflow: hidden;
}

.card-banner-img {
    height: 110px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-surface-hover);
    border-radius: var(--border-radius-card) var(--border-radius-card) 0 0;
}

.card-banner-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-banner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.card-icon-sm {
    width: 32px;
    height: 32px;
    background-color: var(--bg-dark);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-sm .material-symbols-outlined {
    font-size: 18px;
    color: var(--accent-solid);
}

.cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background-color: var(--accent-bg);
    color: var(--accent-text);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    text-decoration: none !important;
    white-space: nowrap;
}

.cta-pill:hover {
    background-color: #005a91;
    color: #ffffff;
    transform: scale(1.05);
}

.cta-pill .material-symbols-outlined {
    font-size: 13px !important;
}

.cta-pill-download {
    background-color: rgba(129, 201, 149, 0.15);
    color: var(--green);
}

.cta-pill-download:hover {
    background-color: rgba(129, 201, 149, 0.3);
    color: var(--green);
}

.cta-pill-buy {
    background-color: rgba(253, 214, 99, 0.15);
    color: var(--yellow);
}

.cta-pill-buy:hover {
    background-color: rgba(253, 214, 99, 0.3);
    color: var(--yellow);
}

.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.status-active {
    background-color: rgba(129, 201, 149, 0.15);
    color: var(--green);
}

.status-beta {
    background-color: rgba(253, 214, 99, 0.15);
    color: var(--yellow);
}

.status-live {
    background-color: rgba(138, 180, 248, 0.15);
    color: var(--accent-solid);
}

.status-coming-soon {
    background-color: rgba(252, 173, 112, 0.15);
    color: var(--orange);
}

.status-archived {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.cat-flag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 6px;
    background-color: rgba(242, 139, 130, 0.12);
    color: var(--red);
    border: 1px solid rgba(242, 139, 130, 0.25);
    white-space: nowrap;
    margin: 2px;
}

.cat-flag-badge.flag-ok {
    background-color: rgba(129, 201, 149, 0.1);
    color: var(--green);
    border-color: rgba(129, 201, 149, 0.2);
}

.list-view {
    display: flex;
    flex-direction: column;
}

.list-header {
    display: flex;
    gap: 24px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.list-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background-color var(--transition-speed);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.list-item:nth-child(1) { animation-delay: 0.05s; }
.list-item:nth-child(2) { animation-delay: 0.1s; }
.list-item:nth-child(3) { animation-delay: 0.15s; }
.list-item:nth-child(4) { animation-delay: 0.2s; }
.list-item:nth-child(5) { animation-delay: 0.25s; }
.list-item:nth-child(6) { animation-delay: 0.3s; }
.list-item:nth-child(7) { animation-delay: 0.35s; }
.list-item:nth-child(8) { animation-delay: 0.4s; }

.list-item:hover {
    background-color: var(--bg-surface);
}

.col-name {
    flex: 2.5;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
}

.col-reason {
    flex: 2.5;
    color: var(--text-secondary);
    font-size: 13px;
}

.col-location {
    flex: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.col-status {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.file-icon {
    color: var(--accent-solid);
    font-size: 20px;
}

.location-icon {
    font-size: 18px !important;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    color: var(--text-secondary);
    gap: 12px;
}

.empty-icon {
    font-size: 48px !important;
    opacity: 0.4;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-bg);
    color: var(--accent-text);
    border: none;
    border-radius: var(--border-radius-btn);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.primary-btn:hover {
    filter: brightness(1.3);
    transform: translateY(-2px);
}

.primary-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--accent-text);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-btn);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color var(--transition-speed);
}

.secondary-btn:hover {
    background-color: var(--bg-surface);
}

.danger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(242, 139, 130, 0.12);
    color: var(--red);
    border: 1px solid rgba(242, 139, 130, 0.25);
    border-radius: var(--border-radius-btn);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color var(--transition-speed);
}

.danger-btn:hover {
    background-color: rgba(242, 139, 130, 0.2);
}

.file-upload-btn {
    cursor: pointer;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.admin-form-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-card);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-form-card h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-family);
    padding: 10px 12px;
    outline: none;
    transition: border-color var(--transition-speed);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-solid);
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="checkbox"] {
    accent-color: var(--accent-solid);
    width: 16px;
    height: 16px;
}

.form-link {
    color: var(--accent-solid);
    font-size: 12px;
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.form-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.admin-table-wrapper {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-card);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.admin-table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background-color: var(--bg-surface-hover);
}

.admin-table tbody tr.dragging {
    opacity: 0.5;
    background-color: var(--bg-surface-hover);
}

.admin-table tbody tr.drag-over {
    border-top: 2px solid var(--accent-solid);
}

.admin-table tbody tr.drag-over-bottom {
    border-bottom: 2px solid var(--accent-solid);
}

.admin-table .actions-cell {
    display: flex;
    gap: 4px;
}

.admin-table .actions-cell button {
    background: transparent;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.admin-table .actions-cell button:hover {
    background-color: var(--bg-elevated);
}

.admin-table .actions-cell button .material-symbols-outlined {
    font-size: 18px;
}

.pin-active .material-symbols-outlined {
    color: var(--yellow) !important;
    font-variation-settings: 'FILL' 1;
}

.data-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #5f6368;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7a7e83;
}

.mobile-menu-btn {
    display: none;
    margin-right: 8px;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .top-bar {
        padding: 8px 12px;
        height: 60px;
        position: relative;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
    }

    .logo-area {
        width: auto;
        padding-left: 0;
        gap: 6px;
        flex-shrink: 0;
    }

    .logo-text {
        display: none;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 4px;
        padding-right: 0;
        flex-shrink: 0;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .icon-btn svg {
        width: 18px;
        height: 18px;
    }

    .search-bar {
        position: relative;
        right: auto;
        top: auto;
        flex: 0 0 36px;
        height: 36px;
        width: 36px;
        min-width: 36px;
        max-width: 36px;
        margin: 0 2px 0 auto;
        padding: 0;
        background-color: transparent;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        overflow: hidden;
        z-index: 10;
        cursor: pointer;
    }

    .search-bar:hover {
        background-color: var(--bg-surface-hover);
    }

    .search-bar:focus-within {
        position: absolute;
        top: 8px;
        left: 8px;
        right: 8px;
        width: auto;
        max-width: none;
        flex: none;
        height: 44px;
        background-color: var(--bg-surface);
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        border-radius: 22px;
        padding: 0 14px;
        margin: 0;
        z-index: 100;
    }

    .search-bar .search-icon {
        position: static;
        pointer-events: none;
        font-size: 20px;
        color: var(--text-secondary);
        flex-shrink: 0;
    }

    .search-bar:focus-within .search-icon {
        pointer-events: auto;
        color: var(--accent-solid);
    }

    .search-bar input {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        font-size: 14px;
        opacity: 0;
        cursor: pointer;
        background: transparent;
        border: none;
        outline: none;
    }

    .search-bar:focus-within input {
        position: static;
        opacity: 1;
        cursor: text;
        padding: 0 8px;
        flex-grow: 1;
        font-size: 14px;
    }

    .search-bar .filter-icon {
        position: static;
        font-size: 18px;
        color: var(--text-secondary);
        cursor: pointer;
        flex-shrink: 0;
    }

    .sidebar {
        position: fixed;
        top: 60px;
        left: -280px;
        width: 260px;
        height: calc(100dvh - 60px);
        z-index: 900;
        transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        display: flex !important;
        padding-top: 8px;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .content-area {
        border-radius: 0;
        padding: 20px 16px;
    }

    .content-header {
        margin-bottom: 20px;
    }

    .content-header h1 {
        font-size: 20px;
    }

    .section {
        margin-bottom: 24px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .col-reason, .col-location {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

.detail-main {
    flex-grow: 1;
    background-color: var(--bg-main);
    padding: 40px 48px;
    overflow-y: auto;
    width: 100%;
}

.detail-inner {
    max-width: 860px;
    margin: 0 auto;
}

.detail-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.detail-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background-color: var(--bg-surface);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-icon-symbol {
    font-size: 40px !important;
    color: var(--accent-solid) !important;
}

.detail-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
}

.detail-meta {
    flex-grow: 1;
}

.detail-meta h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.2;
}

.detail-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-category {
    font-size: 13px;
    color: var(--text-secondary);
    background-color: var(--bg-surface);
    padding: 3px 10px;
    border-radius: 10px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-section-title .material-symbols-outlined {
    font-size: 16px !important;
}

.gallery-wrapper {
    mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);

    margin-left: -24px;
    margin-right: -24px;
}

.gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    gap: 12px;
    padding: 12px 24px 24px 24px; 
}

.gallery-grid::-webkit-scrollbar {
    height: 6px;
}
.gallery-grid::-webkit-scrollbar-track {
    background: transparent;
}
.gallery-grid::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.gallery-grid::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.gallery-item {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-surface);
    aspect-ratio: 16/10;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.hidden {
    display: none !important;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    z-index: 1001;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-close .material-symbols-outlined { color: white; font-size: 24px; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    z-index: 1001;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav .material-symbols-outlined { color: white; font-size: 28px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.markdown-body {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 15px;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 28px;
    margin-bottom: 12px;
}

.markdown-body h1 { font-size: 24px; }
.markdown-body h2 { font-size: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.markdown-body h3 { font-size: 17px; }
.markdown-body p { margin-bottom: 14px; }
.markdown-body a { color: var(--accent-solid); text-decoration: none; }
.markdown-body a:hover { text-decoration: underline; }

.markdown-body code {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 13px;
    font-family: 'Fira Code', 'Courier New', monospace;
    color: var(--accent-text);
}

.markdown-body pre {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.markdown-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    color: var(--text-primary);
}

.markdown-body ul, .markdown-body ol {
    padding-left: 24px;
    margin-bottom: 14px;
}

.markdown-body li { margin-bottom: 6px; }

.markdown-body blockquote {
    border-left: 3px solid var(--accent-solid);
    padding: 8px 16px;
    margin: 16px 0;
    background-color: var(--bg-surface);
    border-radius: 0 8px 8px 0;
}

.markdown-body strong { color: var(--text-primary); font-weight: 600; }
.markdown-body hr { border: none; border-top: 1px solid var(--border-color); margin: 24px 0; }

.markdown-body table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.markdown-body th, .markdown-body td { padding: 10px 12px; border: 1px solid var(--border-color); text-align: left; font-size: 14px; }
.markdown-body th { background-color: var(--bg-surface); font-weight: 600; color: var(--text-primary); }

.icon-preview-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 8px;
    background-color: var(--bg-dark);
    padding: 4px;
    border: 1px solid var(--border-color);
}

.gallery-admin-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 0;
}

.gallery-admin-input-row input {
    flex-grow: 1;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-family);
    padding: 10px 12px;
    outline: none;
}

.gallery-admin-input-row input:focus { border-color: var(--accent-solid); }

.gallery-admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.gallery-admin-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
}

.gallery-admin-preview {
    width: 40px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    background-color: var(--bg-surface);
}

.gallery-admin-path {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: monospace;
    flex-grow: 1;
    word-break: break-all;
}

.gallery-remove-btn {
    background: transparent;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--transition-speed);
}

.gallery-remove-btn:hover { background-color: rgba(242, 139, 130, 0.15); }
.gallery-remove-btn .material-symbols-outlined { font-size: 16px; color: var(--red); }

.card-custom-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.error-msg {
    color: var(--red);
    padding: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .detail-main { padding: 24px 16px; }
    .detail-header { flex-direction: column; gap: 16px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

.home-carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.home-carousel-container::-webkit-scrollbar {
    display: none;
}

.home-carousel-item {
    flex: 0 0 85%;
    max-width: 600px;
    scroll-snap-align: center;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    background-color: var(--bg-surface);
}

.home-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.markdown-body {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}
.markdown-body h1 { font-size: 24px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.markdown-body h2 { font-size: 20px; }
.markdown-body p { margin-bottom: 16px; }
.markdown-body a { color: var(--accent-solid); text-decoration: none; }
.markdown-body a:hover { text-decoration: underline; }
.markdown-body ul, .markdown-body ol { margin-bottom: 16px; padding-left: 24px; }
.markdown-body code { background-color: var(--bg-surface); padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 13px; }
.markdown-body pre { background-color: var(--bg-surface); padding: 16px; border-radius: 8px; overflow-x: auto; margin-bottom: 16px; }
.markdown-body pre code { background-color: transparent; padding: 0; }
.markdown-body img { max-width: 100%; border-radius: 8px; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-transition {
    animation: pageFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-fade-out {
    animation: pageFadeOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pageFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.site-footer {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.footer-logo-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    opacity: 0.85;
}

.footer-links-grid {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-col a:hover {
    color: var(--accent-solid);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0.75;
}

.footer-disclaimer {
    font-size: 11px;
    max-width: 500px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 28px;
    }
    .footer-links-grid {
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

.detail-header.layout-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.detail-header.layout-center .detail-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
    border-radius: 20px;
}

.detail-header.layout-center .detail-icon-img {
    width: 88px;
    height: 88px;
    border-radius: 20px;
}

.detail-header.layout-center .detail-icon-symbol {
    font-size: 48px;
}

.detail-header.layout-center .detail-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.detail-header.layout-center .detail-meta h1 {
    font-size: 36px;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.detail-tagline {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 16px;
    max-width: 650px;
    line-height: 1.4;
}

.detail-badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.detail-badge-pill {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-badge-pill .material-symbols-outlined {
    font-size: 14px;
    color: var(--accent-solid);
}

.detail-header.layout-center .detail-actions {
    justify-content: center;
}

.mac-window-frame {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    margin-bottom: 32px;
}

.mac-window-titlebar {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 12px;
}

.mac-traffic-lights {
    display: flex;
    gap: 6px;
}

.mac-light {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.mac-light.red { background-color: #ff5f56; }
.mac-light.yellow { background-color: #ffbd2e; }
.mac-light.green { background-color: #27c93f; }

.mac-window-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 auto;
    font-weight: 500;
    padding-right: 40px;
}

.mac-window-content {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mac-window-content video,
.mac-window-content iframe,
.mac-window-content img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.product-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.product-feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.product-feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-solid);
}

.product-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: var(--accent-bg);
    color: var(--accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-feature-icon .material-symbols-outlined {
    font-size: 20px;
    color: var(--accent-text);
}

.product-feature-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.product-feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.product-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.product-spec-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-spec-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.product-spec-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.faq-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    overflow: hidden;
    transition: border-color var(--transition-speed);
}

.faq-item[open] {
    border-color: var(--accent-solid);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question .material-symbols-outlined {
    transition: transform var(--transition-speed);
    font-size: 20px;
}

.faq-item[open] .faq-question .material-symbols-outlined {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 16px 20px;
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 12px;
}

.product-cta-banner {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-main);
    padding: 36px 32px;
    text-align: center;
    margin: 48px 0 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.product-cta-banner h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.product-cta-banner p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 8px;
}

/* ===== SPLASH SCREEN (Clean Windows 11 boot inspired) ===== */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    pointer-events: all;
}

#splash-screen.splash-fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.splash-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    user-select: none;
}

.splash-spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--accent-solid);
    animation: splashSpin 0.75s linear infinite;
}

@keyframes splashSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ADMIN REPEATER / BUILDER UI ===== */
.admin-builder-section {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.admin-builder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.admin-builder-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-repeater-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-repeater-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: border-color var(--transition-speed);
}

.admin-repeater-card:focus-within {
    border-color: var(--accent-solid);
}

.admin-repeater-inputs {
    display: flex;
    flex-grow: 1;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-repeater-inputs input,
.admin-repeater-inputs textarea {
    background-color: var(--bg-dark) !important;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 8px 10px;
    font-size: 13px;
    font-family: var(--font-family);
    outline: none;
    transition: border-color var(--transition-speed);
}

.admin-repeater-inputs input:focus,
.admin-repeater-inputs textarea:focus {
    border-color: var(--accent-solid);
}

.admin-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.admin-badge-chip {
    background-color: var(--accent-bg);
    color: var(--accent-text);
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.admin-badge-chip button {
    background: transparent;
    border: none;
    color: var(--accent-text);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}

.admin-badge-chip button:hover {
    opacity: 1;
}

.admin-order-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.admin-order-chip {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
}

.admin-order-actions {
    display: flex;
    gap: 4px;
}

.admin-order-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.admin-order-btn:hover {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
}
