* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --md-primary: #D6C8AD;
    --md-on-primary: #1A1A1A;
    --md-primary-container: #3A3327;
    --md-on-primary-container: #EFE5D0;

    --md-secondary-container: #2E2A22;
    --md-on-secondary-container: #E8DCC5;

    --md-tertiary-container: #3D3226;
    --md-on-tertiary-container: #E8DCC5;

    --md-surface: #1A1A1A;
    --md-on-surface: #D6C8AD;
    --md-on-surface-variant: rgba(214, 200, 173, 0.65);

    --md-outline: rgba(214, 200, 173, 0.3);
    --md-outline-variant: rgba(214, 200, 173, 0.12);
    --md-scrim: rgba(0, 0, 0, 0.6);

    --md-surface-container-lowest: #141414;
    --md-surface-container-low: rgba(40, 50, 40, 0.95);
    --md-surface-container: #2A2A2A;
    --md-surface-container-high: #333333;
    --md-surface-container-highest: #3A3A3A;

    --shape-xs: 8px;
    --shape-sm: 12px;
    --shape-md: 16px;
    --shape-lg: 20px;
    --shape-xl: 28px;
    --shape-xxl: 40px;
    --shape-full: 50px;

    --font-display: 'Inter', -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    --nav-width: 280px;
}

body {
    font-family: 'Inter', -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: #1A1A1A;
    color: #D6C8AD;
    transition: background-color 0.3s ease, color 0.2s ease;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

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

/* ========== ANIMATIONS ========== */
@keyframes bounceSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes bounceScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Header Bar - Sticky without rounded corner - Liquid Glass + Bounce */
.header-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    margin: 0;
    background: rgba(40, 50, 40, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 0;
    border-bottom: 1px solid rgba(214, 200, 173, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    animation: fadeSlideUp 0.5s ease-out;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: #D6C8AD;
    transition: all 0.2s ease;
    cursor: pointer;
}

.logo .material-symbols-outlined {
    font-size: 24px;
    color: #D6C8AD;
}

.logo span {
    color: #D6C8AD;
}

.logo:hover {
    transform: scale(1.02);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-btn {
    background: rgba(214, 200, 173, 0.12);
    border: 1px solid rgba(214, 200, 173, 0.2);
    border-radius: 40px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #D6C8AD;
    transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.header-btn:hover {
    background: rgba(214, 200, 173, 0.25);
    transform: scale(1.02) translateY(-1px);
}

.header-btn:active {
    transform: scale(0.96);
}

/* Popup Menu - SOLID dengan warna header bar */
.popup-wrapper {
    position: relative;
}

.popup-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(40, 50, 40, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 20px;
    padding: 10px;
    min-width: 180px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(214, 200, 173, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
    z-index: 200;
}

.popup-wrapper.active .popup-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.popup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
    color: #D6C8AD;
    font-weight: 500;
    border-bottom: 1px solid rgba(214, 200, 173, 0.08);
}

.popup-item:last-child {
    border-bottom: none;
}

.popup-item:hover {
    background: rgba(214, 200, 173, 0.12);
    transform: translateX(6px) scale(1.02);
}

.popup-item .material-symbols-outlined,
.popup-item .flag {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.popup-item:hover .material-symbols-outlined,
.popup-item:hover .flag {
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 16px 80px;
    width: 100%;
}

/* Hero dengan subhead opacity 1.0 */
.hero {
    margin-bottom: 24px;
    text-align: center;
    animation: fadeSlideUp 0.6s ease-out;
}

.hero-text {
    display: inline-block;
    padding: 8px 24px;
    transition: all 0.3s ease;
}

.hero-text:hover {
    transform: scale(1.02);
}

.subhead {
    font-size: 18px;
    font-weight: 500;
    color: #D6C8AD;
    opacity: 1.0;
    transition: all 0.3s ease;
}

/* Combined Card with bounce */
.combined-card {
    background: linear-gradient(135deg, #A58763, #2D2D2D);
    border: 1px solid rgba(214, 200, 173, 0.15);
    background-size: 200% 200%;
    border-radius: 28px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    animation: gradientShift 5s ease infinite, fadeSlideUp 0.5s ease-out 0.1s both;
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.combined-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(214, 200, 173, 0.2);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.combined-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.combined-item:active {
    transform: scale(0.98);
    background: rgba(0, 0, 0, 0.05);
}

.combined-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tiktok-avatar {
    width: 150px;
    height: 150px;
    border-radius: 100%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease;
}

.combined-item:hover .tiktok-avatar {
    transform: scale(1.05);
}

.support-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.combined-item:hover .support-icon {
    transform: scale(1.05);
}

.support-icon .material-symbols-outlined {
    font-size: 24px;
    color: white;
}

.combined-text {
    color: white;
}

.combined-username {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.combined-username .material-symbols-outlined {
    font-size: 14px;
}

.combined-label {
    font-size: 10px;
    opacity: 0.85;
}

.support-label {
    opacity: 0.9;
}

.combined-icon .material-symbols-outlined {
    color: white;
    font-size: 18px;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.combined-item:hover .combined-icon .material-symbols-outlined {
    transform: translateX(4px);
}

.combined-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 18px;
}

/* Disclaimer Card */
.disclaimer-card {
    background: #2A2A2A;
    border-radius: 20px;
    padding: 14px 18px;
    margin-bottom: 22px;
    border-left: 5px solid #D6C8AD;
    border-top: 1px solid rgba(214, 200, 173, 0.15);
    border-right: 1px solid rgba(214, 200, 173, 0.15);
    border-bottom: 1px solid rgba(214, 200, 173, 0.15);
    animation: fadeSlideUp 0.5s ease-out 0.15s both;
    transition: all 0.3s ease;
}

.disclaimer-card:hover {
    transform: translateX(4px);
}

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

.disclaimer-title {
    font-weight: 700;
    font-size: 14px;
    color: #D6C8AD;
}

.read-more-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #D6C8AD;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 30px;
    transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.read-more-btn:hover {
    background: rgba(214, 200, 173, 0.12);
    transform: scale(1.05);
}

.read-more-btn .material-symbols-outlined {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.read-more-btn.expanded .material-symbols-outlined {
    transform: rotate(180deg);
}

.disclaimer-text {
    font-size: 12px;
    color: #D6C8AD;
    line-height: 1.45;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.2s ease;
}

.disclaimer-text.expanded {
    max-height: 300px;
    margin-top: 8px;
}

.disclaimer-text p {
    margin-bottom: 6px;
}

.disclaimer-text p:last-child {
    margin-bottom: 0;
}

/* Modpack Disclaimer - always expanded */
.modpack-disclaimer-card .disclaimer-text {
    max-height: 300px;
    margin-top: 8px;
}

.modpack-disclaimer-card .disclaimer-text p {
    margin-bottom: 6px;
}

.modpack-disclaimer-card .disclaimer-text p:last-child {
    margin-bottom: 0;
}

/* Search Box with bounce */
.search-box {
    background: #2A2A2A;
    border-radius: 32px;
    padding: 11px 18px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(214, 200, 173, 0.15);
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    animation: fadeSlideUp 0.5s ease-out 0.2s both;
}

.search-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-box:focus-within {
    border-color: #D6C8AD;
    box-shadow: 0 0 0 3px rgba(214, 200, 173, 0.08);
    transform: scale(1.01);
}

.search-box .material-symbols-outlined { 
    color: #D6C8AD; 
    font-size: 20px; 
}
.search-box input { 
    background: none; 
    border: none; 
    flex: 1; 
    font-size: 15px; 
    outline: none; 
    font-family: inherit;
    color: #D6C8AD;
}
.search-box input::placeholder { 
    color: rgba(214, 200, 173, 0.4); 
}

/* Pagination - Shaders only */
.pagination-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 20px 0 14px;
}

.page-btn {
    background: #2A2A2A;
    border: 1px solid rgba(214, 200, 173, 0.15);
    border-radius: 40px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 13px;
    color: #D6C8AD;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-btn:hover:not(.disabled) {
    background: rgba(214, 200, 173, 0.15);
    color: #D6C8AD;
    border-color: #D6C8AD;
    transform: scale(1.05);
}

.page-btn:active:not(.disabled) {
    transform: scale(0.96);
}

.page-btn.disabled { opacity: 0.3; pointer-events: none; }

.page-number {
    background: #2A2A2A;
    font-size: 13px;
    font-weight: 600;
    color: #D6C8AD;
    padding: 5px 14px;
    border-radius: 40px;
    min-width: 65px;
    text-align: center;
    border: 1px solid rgba(214, 200, 173, 0.15);
}

.pagination-info {
    font-size: 11px;
    text-align: center;
    margin-top: 6px;
    color: rgba(214, 200, 173, 0.5);
}

/* Modpacks active - hide shaders specific elements */
.modpacks-active .pagination-control,
.modpacks-active .pagination-info,
.modpacks-active .search-box,
.modpacks-active #disclaimerCard {
    display: none !important;
}

/* Download List with bounce animation */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modpack-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-item {
    background: #3A3A3A;
    border-radius: 24px;
    text-decoration: none;
    width: 90vw;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    border: 1px solid rgba(214, 200, 173, 0.1);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: fadeSlideUp 0.4s ease-out backwards;
}

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

.download-item:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(214, 200, 173, 0.3);
    box-shadow: 0 8px 20px rgba(214, 200, 173, 0.08);
}

.download-item:active { transform: scale(0.98); background: #333; }

/* Icon background dengan #D6C8AD dan opacity tipis */
.item-icon {
    width: 48px;
    height: 48px;
    background: rgba(214, 200, 173, 0.12);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(214, 200, 173, 0.08);
    transition: all 0.2s ease;
}

.download-item:hover .item-icon {
    transform: scale(1.05) rotate(5deg);
    background: rgba(214, 200, 173, 0.2);
}

.item-icon .material-symbols-outlined { 
    font-size: 26px; 
    color: #D6C8AD; 
    transition: color 0.2s ease; 
}
.item-content { flex: 1; }

.item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #D6C8AD;
    transition: color 0.2s ease;
}

.download-item:hover .item-title { color: #D6C8AD; }

/* Modpack title - larger and bolder */
.modpack-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

@media (max-width: 600px) {
    .modpack-title {
        font-size: 17px;
    }
}

.item-subtitle {
    font-size: 12px;
    color: rgba(214, 200, 173, 0.6);
    margin-bottom: 8px;
    font-weight: 400;
}

/* Badge Group - semua badge menggunakan #D6C8AD dengan opacity berbeda */
.badge-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.badge-row {
    display: block;
    width: 100%;
}

.badge-row .meta-badge,
.badge-row .meta-badge-new {
    display: inline-block;
    white-space: nowrap;
}

.meta-badge {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s ease;
    background: rgba(214, 200, 173, 0.15);
    color: #D6C8AD;
    border: 1px solid rgba(214, 200, 173, 0.1);
}

.download-item:hover .meta-badge {
    background: rgba(214, 200, 173, 0.25);
    transform: scale(1.02);
}

/* Badge kedua - opacity lebih tipis */
.badge-group .badge-row:nth-child(2) .meta-badge {
    background: rgba(214, 200, 173, 0.08);
    border-color: rgba(214, 200, 173, 0.06);
}

.meta-badge-new {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s ease;
    background: rgba(214, 200, 173, 0.1);
    color: #D6C8AD;
    border: 1px solid rgba(214, 200, 173, 0.06);
}

.download-item:hover .meta-badge-new {
    background: rgba(214, 200, 173, 0.2);
    transform: scale(1.02);
}

/* Badge khusus untuk modpack dengan opacity berbeda */
.modpack-item .badge-group .badge-row:nth-child(1) .meta-badge {
    background: rgba(214, 200, 173, 0.15);
    border-color: rgba(214, 200, 173, 0.1);
}

.modpack-item .badge-group .badge-row:nth-child(2) .meta-badge {
    background: rgba(214, 200, 173, 0.08);
    border-color: rgba(214, 200, 173, 0.06);
}

.modpack-item .badge-group .badge-row:nth-child(3) .meta-badge-new {
    background: rgba(214, 200, 173, 0.1);
    border-color: rgba(214, 200, 173, 0.06);
}

.arrow-icon { 
    color: #D6C8AD; 
    opacity: 0.3; 
    font-size: 20px; 
    transition: all 0.2s ease; 
}
.download-item:hover .arrow-icon { 
    opacity: 0.6; 
    transform: translateX(4px); 
}

/* Coming Soon */
.coming-soon-area {
    margin: 28px 0;
}

.coming-soon-glass {
    background: #2A2A2A;
    border-radius: 40px;
    padding: 40px 20px;
    text-align: center;
    border: 1px solid rgba(214, 200, 173, 0.1);
    animation: bounceSoft 2s ease-in-out infinite, fadeSlideUp 0.5s ease-out;
    transition: all 0.3s ease;
}

.coming-soon-glass:hover {
    transform: scale(1.02);
    border-color: rgba(214, 200, 173, 0.2);
}

.coming-soon-glass .material-symbols-outlined { 
    font-size: 56px; 
    color: #D6C8AD; 
    margin-bottom: 14px;
    animation: bounceSoft 1.5s ease-in-out infinite;
}
.coming-soon-glass h3 { 
    font-size: 22px; 
    margin-bottom: 6px; 
    color: #D6C8AD; 
}
.coming-soon-glass p { 
    color: rgba(214, 200, 173, 0.5); 
    font-size: 14px; 
}

/* Bottom Bar - Small, Rounded, Liquid Glass with bounce */
.bottom-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
}

.tab-switch {
    display: flex;
    gap: 8px;
    background: rgba(40, 50, 40, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 60px;
    padding: 6px;
    border: 1px solid rgba(214, 200, 173, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.tab-switch:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: rgba(214, 200, 173, 0.5);
    transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.tab-btn:hover:not(.active) {
    transform: translateY(-2px);
    color: #D6C8AD;
}

.tab-btn:hover:not(.active) .material-symbols-outlined {
    transform: scale(1.1);
}

.tab-btn.active {
    background: rgba(214, 200, 173, 0.15);
    color: #D6C8AD;
    box-shadow: 0 2px 8px rgba(214, 200, 173, 0.08);
    animation: bounceScale 0.3s ease-out;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 11px;
    color: rgba(214, 200, 173, 0.4);
    border-top: 1px solid rgba(214, 200, 173, 0.08);
    padding: 20px 16px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: #1A1A1A;
    transition: all 0.3s ease;
}

.footer:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
    .main-content { padding: 16px 12px 70px; }
    .header-bar { padding: 10px 16px; }
    .logo { font-size: 15px; }
    .logo .material-symbols-outlined { font-size: 20px; }
    .header-btn { padding: 6px 12px; font-size: 13px; }
    .tab-btn { padding: 6px 16px; font-size: 13px; }
    .tab-btn .material-symbols-outlined { font-size: 16px; }
    .download-item { padding: 12px 14px; }
    .item-title { font-size: 14px; }
    .modpack-title { font-size: 17px; }
    .item-subtitle { font-size: 11px; }
    .bottom-bar { bottom: 12px; }
    .combined-item { padding: 12px 16px; }
    .support-icon { width: 40px; height: 40px; }
    .badge-row .meta-badge,
    .badge-row .meta-badge-new {
        font-size: 9px;
        padding: 2px 10px;
    }
}
/* ============================================
   Ported multi-page components (nav drawer,
   top app bar, cards, buttons, guides, specs)
   — same warm dark / tan design language
   ============================================ */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Scrim ── */
.nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--md-scrim);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-scrim.visible { display: block; opacity: 1; }

/* ── Navigation Drawer ── */
.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--nav-width);
    height: 100vh;
    background: var(--md-surface-container-low);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    flex-direction: column;
    z-index: 300;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    overflow-y: auto;
    border-right: 1px solid var(--md-outline-variant);
}
.nav-drawer.open {
    transform: translateX(0);
    box-shadow: 2px 0 24px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1024px) {
    .nav-drawer {
        position: sticky;
        top: 0;
        transform: translateX(0);
        height: 100vh;
        flex-shrink: 0;
        box-shadow: none;
    }
    .nav-scrim { display: none !important; }
    .nav-toggle { display: none !important; }
}

.nav-drawer-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--md-outline-variant);
    margin-bottom: 8px;
    flex-shrink: 0;
}
.nav-drawer-header img {
    width: 48px;
    height: 48px;
    border-radius: var(--shape-md);
    object-fit: cover;
    border: 2px solid rgba(214, 200, 173, 0.2);
}
.nav-drawer-header-text .nav-site-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--md-on-surface);
}
.nav-drawer-header-text .nav-site-sub {
    font-size: 12px;
    color: var(--md-on-surface-variant);
}

.nav-items { list-style: none; padding: 4px 12px; flex: 1; }
.nav-item { margin: 2px 0; }
.nav-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: var(--shape-full);
    color: var(--md-on-surface-variant);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1px;
    transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.nav-item a .material-symbols-outlined { font-size: 20px; flex-shrink: 0; }
.nav-item a:hover { background: rgba(214, 200, 173, 0.1); color: var(--md-primary); transform: translateX(4px); }
.nav-item.active a {
    background: rgba(214, 200, 173, 0.15);
    color: var(--md-on-secondary-container);
    font-weight: 700;
    border: 1px solid rgba(214, 200, 173, 0.15);
}

/* ── Ripple ── */
.ripple-container { position: relative; overflow: hidden; cursor: pointer; }
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(214, 200, 173, 0.25);
    transform: scale(0);
    animation: ripple-anim 0.5s linear;
    pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ── Top App Bar ── */
.top-app-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(40, 50, 40, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-bottom: 1px solid rgba(214, 200, 173, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    animation: fadeSlideUp 0.5s ease-out;
}
.nav-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--shape-full);
    border: none;
    background: transparent;
    color: var(--md-on-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.nav-toggle:hover { background: rgba(214, 200, 173, 0.1); transform: scale(1.05); }
.top-app-bar-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--md-on-surface);
}

/* ── Page shell for sub-pages ── */
.page-content { flex: 1; padding: 24px; max-width: 900px; width: 100%; margin: 0 auto; }
@media (max-width: 600px) { .page-content { padding: 16px; } }

.page-header { margin-bottom: 24px; }
.page-header .page-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--md-on-surface);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-header .page-subtitle { font-size: 14px; color: var(--md-on-surface-variant); }

/* ── Hero Banner ── */
.hero-banner {
    background: linear-gradient(135deg, #A58763, #2D2D2D);
    background-size: 200% 200%;
    color: var(--md-on-primary-container);
    border-radius: var(--shape-xl);
    padding: 28px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(214, 200, 173, 0.15);
    animation: gradientShift 6s ease infinite, fadeSlideUp 0.5s ease-out both;
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.hero-banner:hover { transform: translateY(-3px); }
.hero-banner h2 { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin-bottom: 8px; position: relative; }
.hero-banner p { font-size: 14px; line-height: 1.6; opacity: 0.9; position: relative; }

/* ── Device hero (device.html) ── */
.device-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
    border-radius: var(--shape-xl);
    padding: 28px 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.device-hero img { width: 120px; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4)); }
.device-hero-text h2 { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.device-hero-text p { font-size: 14px; opacity: 0.85; }
@media (max-width: 500px) { .device-hero { flex-direction: column; text-align: center; } }

/* ── Cards ── */
.card {
    background: var(--md-surface-container);
    border-radius: var(--shape-xl);
    padding: 20px;
    border: 1px solid var(--md-outline-variant);
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.card:hover { background: var(--md-surface-container-high); transform: translateY(-2px); }
.card-elevated {
    background: var(--md-surface-container-low);
    border-radius: var(--shape-xl);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
}
.card h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--md-on-surface); }
.card ul { padding-left: 20px; font-size: 14px; color: var(--md-on-surface-variant); display: flex; flex-direction: column; gap: 6px; }
.card p { font-size: 14px; color: var(--md-on-surface-variant); }

/* ── Buttons (pill) ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--shape-full);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1px;
    padding: 10px 24px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.btn:active { transform: scale(0.96); }
.btn-filled { background: var(--md-primary); color: var(--md-on-primary); }
.btn-filled:hover { box-shadow: 0 4px 16px rgba(214, 200, 173, 0.35); background: #E8DCC5; transform: scale(1.02) translateY(-1px); }
.btn-outlined { background: transparent; color: var(--md-primary); border: 1.5px solid var(--md-outline); }
.btn-outlined:hover { background: rgba(214, 200, 173, 0.1); border-color: var(--md-primary); transform: scale(1.02); }

/* ── Badges (pill, guide cards) ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: var(--shape-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: var(--font-display);
}
.badge-primary { background: rgba(214, 200, 173, 0.15); color: var(--md-on-primary-container); border: 1px solid rgba(214, 200, 173, 0.1); }
.badge-secondary { background: rgba(214, 200, 173, 0.08); color: var(--md-on-secondary-container); border: 1px solid rgba(214, 200, 173, 0.06); }
.badge-tertiary { background: rgba(165, 135, 99, 0.2); color: var(--md-on-tertiary-container); border: 1px solid rgba(165, 135, 99, 0.15); }

/* ── Download Card (guide.html list) ── */
.download-card {
    background: var(--md-surface-container);
    border-radius: var(--shape-xl);
    overflow: hidden;
    border: 1px solid var(--md-outline-variant);
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.download-card:hover { border-color: rgba(214, 200, 173, 0.3); box-shadow: 0 8px 24px rgba(214, 200, 173, 0.1); transform: translateY(-3px); }
.download-card-header { display: flex; align-items: center; gap: 16px; padding: 20px; border-bottom: 1px solid var(--md-outline-variant); }
.download-card-icon { width: 48px; height: 48px; border-radius: var(--shape-md); object-fit: contain; background: rgba(214, 200, 173, 0.12); padding: 6px; }
.download-card-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--md-on-surface); }
.download-card-subtitle { font-size: 13px; color: var(--md-on-surface-variant); }
.download-card-body { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.download-card-desc { font-size: 14px; color: var(--md-on-surface-variant); flex: 1; }

/* ── Step card (guide walkthroughs) ── */
.step-card {
    display: flex;
    gap: 16px;
    background: var(--md-surface-container);
    border-radius: var(--shape-xl);
    padding: 20px;
    border-left: 3px solid var(--md-primary);
    border-top: 1px solid var(--md-outline-variant);
    border-right: 1px solid var(--md-outline-variant);
    border-bottom: 1px solid var(--md-outline-variant);
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.step-card:hover { transform: translateX(4px); }
.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(214, 200, 173, 0.15);
    color: var(--md-on-primary-container);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(214, 200, 173, 0.1);
}
.step-content h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--md-on-surface); margin-bottom: 4px; }
.step-content p { font-size: 14px; color: var(--md-on-surface-variant); }

/* ── Spec table (device.html) ── */
.spec-group { background: var(--md-surface-container); border-radius: var(--shape-xl); overflow: hidden; margin-bottom: 16px; border: 1px solid var(--md-outline-variant); }
.spec-header {
    padding: 16px 20px;
    background: rgba(214, 200, 173, 0.12);
    color: var(--md-on-secondary-container);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.spec-header .material-symbols-outlined { font-size: 18px; }
.spec-row { display: flex; padding: 12px 20px; gap: 16px; border-bottom: 1px solid var(--md-outline-variant); }
.spec-row:last-child { border-bottom: none; }
.spec-label { font-size: 12px; font-weight: 600; color: var(--md-on-surface-variant); width: 130px; flex-shrink: 0; letter-spacing: 0.4px; text-transform: uppercase; padding-top: 2px; }
.spec-value { font-size: 14px; color: var(--md-on-surface); flex: 1; }

/* ── Page footer (sub-pages) ── */
.page-footer {
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--md-on-surface-variant);
    border-top: 1px solid var(--md-outline-variant);
    margin-top: auto;
}

/* ── Generic helpers ── */
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ── Coming soon icon inside emoji span (guide/downloads empty state) ── */
.coming-soon-icon { display: block; }
