/* ══════════ RESET & BASE ══════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-input: #1e1e2a;
    --bg-nav: rgba(14, 14, 22, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #8b8b9e;
    --text-muted: #5a5a6e;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --accent-gradient: linear-gradient(135deg, #3b82f6, #2563eb);
    --pink: #e840e0;
    --purple: #8b5cf6;
    --green: #22c55e;
    --red: #ef4444;
    --orange: #f59e0b;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --nav-height: 72px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 12px);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ══════════ SCROLLBAR ══════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }

/* ══════════ BOTTOM NAV ══════════ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    padding-bottom: var(--safe-bottom);
    z-index: 1000;
    border-top: 1px solid var(--border);
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-muted);
    position: relative;
    user-select: none;
}

.nav-item span:not(.badge) {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-item.active {
    color: var(--accent-light);
    background: rgba(59, 130, 246, 0.1);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav-item .badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.hidden { display: none !important; }

/* ══════════ PAGE CONTAINER ══════════ */
.page {
    padding: 16px;
    animation: fadeIn 0.25s ease;
}

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

/* ══════════ SEARCH BAR ══════════ */
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.search-bar .logo {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar .logo svg {
    width: 36px;
    height: 36px;
    color: var(--text-primary);
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--accent);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 16px;
    height: 16px;
}

/* ══════════ CATEGORIES ══════════ */
.categories-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.categories-row::-webkit-scrollbar { display: none; }

.cat-chip {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.cat-chip.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ══════════ PRODUCT GRID ══════════ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid var(--border);
}

.product-card:active {
    transform: scale(0.97);
}

.product-card-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-img .no-img {
    color: var(--text-muted);
    font-size: 40px;
}

.product-card-info {
    padding: 10px 12px;
}

.product-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-card-price .old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

.product-card-price .currency {
    color: var(--accent-light);
}

.product-card-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-btn {
    width: 100%;
    padding: 8px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.product-card-btn:active { opacity: 0.8; }

.product-card-btn.out-of-stock {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    cursor: default;
}

/* ══════════ PRODUCT DETAIL ══════════ */
.product-detail {
    padding: 0;
}

.product-detail-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.product-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-body {
    padding: 20px 16px;
}

.product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.product-detail-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.product-category-badge {
    padding: 4px 12px;
    background: rgba(232, 64, 224, 0.15);
    color: var(--pink);
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
}

.product-detail-price {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.product-detail-price .currency {
    color: var(--accent-light);
}

.product-quantity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.qty-controls {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.qty-btn {
    width: 48px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.qty-btn:active { background: var(--bg-card-hover); }

.qty-value {
    width: 48px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.add-to-cart-btn {
    flex: 1;
    padding: 12px 24px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.add-to-cart-btn:active { opacity: 0.8; }

.share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
}

.product-description {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
}

/* ══════════ CART ══════════ */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.clear-cart-btn {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 10px;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

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

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-input);
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-qty button {
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
}

.cart-item-qty span {
    width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
}

.promo-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.promo-row input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.promo-row input::placeholder { color: var(--text-muted); }

.promo-row input:focus { border-color: var(--accent); }

.promo-apply-btn {
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.cart-total-label {
    font-size: 20px;
    font-weight: 700;
}

.cart-total-value {
    font-size: 24px;
    font-weight: 800;
}

.cart-total-value .currency { color: var(--accent-light); }

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: opacity 0.2s;
}

.checkout-btn:active { opacity: 0.8; }

/* Empty cart */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-card);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-state-icon svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.empty-state-btn {
    padding: 12px 32px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ══════════ CHECKOUT ══════════ */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
}

.form-group {
    margin-bottom: 12px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}

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

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-muted);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b8b9e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Delivery type toggle */
.delivery-toggle {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.delivery-toggle-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.delivery-toggle-btn.active {
    background: var(--pink);
    color: white;
}

.delivery-info-box {
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.delivery-option {
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.delivery-option.selected {
    border-color: var(--accent);
}

.delivery-option-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-option-details {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Payment methods */
.payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.payment-option.selected {
    border-color: var(--accent);
}

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

.payment-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-input);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.payment-option-name {
    font-size: 14px;
    font-weight: 500;
}

.radio-circle {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s;
    position: relative;
}

.selected .radio-circle {
    border-color: var(--pink);
}

.selected .radio-circle::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 12px; height: 12px;
    background: var(--pink);
    border-radius: 50%;
}

/* Checkbox */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    cursor: pointer;
    user-select: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-row.checked .checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-row.checked .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 700;
}

.checkout-total-value {
    font-size: 22px;
    font-weight: 800;
}

/* ══════════ PROFILE ══════════ */
.profile-hero {
    text-align: center;
    padding: 24px 0 20px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-username {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.profile-menu-item:active {
    transform: scale(0.98);
    background: var(--bg-input);
}

.profile-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-menu-item:nth-child(2) .profile-menu-icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

.profile-menu-item:nth-child(3) .profile-menu-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
}

.profile-menu-item:nth-child(4) .profile-menu-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--orange);
}

.profile-menu-text {
    flex: 1;
    min-width: 0;
}

.profile-menu-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-menu-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.profile-menu-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ══════════ ORDERS LIST ══════════ */
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
}

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

.order-number {
    font-size: 14px;
    font-weight: 600;
    font-family: monospace;
}

.order-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.pending { background: rgba(245, 158, 11, 0.15); color: var(--orange); }
.order-status.paid { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.order-status.processing { background: rgba(59, 130, 246, 0.15); color: var(--accent); }
.order-status.shipped { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.order-status.delivered { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.order-status.cancelled { background: rgba(239, 68, 68, 0.15); color: var(--red); }

.order-items-list {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.order-date {
    font-size: 12px;
    color: var(--text-muted);
}

.order-total {
    font-size: 16px;
    font-weight: 700;
}

/* ══════════ NEWS ══════════ */
.news-header {
    margin-bottom: 16px;
}

.news-header h2 {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
}

.news-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.news-count-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent-light);
    margin-top: 10px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.news-card:active { transform: scale(0.98); }

.news-card-cover {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    overflow: hidden;
}

.news-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 14px;
}

.news-card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.news-card-author {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.read-more-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* News article */
.article-page {
    padding: 16px;
}

.article-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.article-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: 20px;
}

.article-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.article-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.article-content a {
    color: var(--accent-light);
}

/* ══════════ LOADING ══════════ */
.loader {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ══════════ TOAST ══════════ */
.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    z-index: 9999;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

/* ══════════ TEST MODE ══════════ */
.test-mode-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    text-align: center;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

body:has(.test-mode-banner) {
    padding-top: 28px;
}

body:has(.test-mode-banner) .bottom-nav {
    bottom: 0;
}
