/* Panchang font (logo) */
@font-face {
    font-family: 'Panchang';
    src: url('//cdn.fontshare.com/wf/47WQXPVBB5FZSBSKG7EM3GTGOVFM5BBT/ODED7M7ROA7KYKTD3MYSN4KKO6JVXBQE/EE3DYKUPHF3W5SWXFO53CRP5KMNTTNTH.woff2') format('woff2'),
         url('//cdn.fontshare.com/wf/47WQXPVBB5FZSBSKG7EM3GTGOVFM5BBT/ODED7M7ROA7KYKTD3MYSN4KKO6JVXBQE/EE3DYKUPHF3W5SWXFO53CRP5KMNTTNTH.woff') format('woff');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000;
    --white: #fff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-800: #262626;
    --gray-900: #171717;
    --max-width: 1536px;
    --side-padding: 48px;
}

html {
    /* scroll-behavior: smooth; — handled by Lenis */
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}


body {
    font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}


a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ==================== HEADER ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left { display: flex; align-items: center; gap: 32px; }

.logo {
    font-family: 'Panchang', 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--black);
}

.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--gray-800); transition: color 0.2s; }
.nav-links a:hover { color: var(--black); }

.search-btn {
    background: none; border: none; cursor: pointer;
    color: var(--gray-600); padding: 4px;
    display: flex; align-items: center; transition: color 0.2s;
}
.search-btn:hover { color: var(--black); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.btn-secondary {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border: 1px solid var(--gray-200);
    border-radius: 999px; background: var(--white);
    font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s, transform 0.15s ease, box-shadow 0.2s;
}
.btn-secondary:hover { background: var(--gray-50); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.btn-primary {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 20px; border: none; border-radius: 999px;
    background: var(--black); color: var(--white);
    font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s, transform 0.15s ease, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--gray-800); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 4px; }

/* ==================== HERO ==================== */
/* ==================== HOMEPAGE TITLE ==================== */
.homepage-title-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 56px var(--side-padding) 12px;
    animation: fadeInUp 0.4s ease-out both;
}

.homepage-title {
    font-family: 'Panchang', 'Plus Jakarta Sans', sans-serif;
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--gray-900);
}

/* ==================== HOMEPAGE ARCHIVES CTA ==================== */
.homepage-archives-cta {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding) 64px;
    text-align: center;
    animation: fadeInUp 0.4s ease-out both;
}

.homepage-archives-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 999px;
    transition: all 0.25s ease;
    letter-spacing: -0.01em;
}

.homepage-archives-btn:hover {
    border-color: var(--gray-900);
    background: var(--gray-900);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .homepage-title-section { padding: 36px var(--side-padding) 8px; }
    .homepage-title { font-size: 36px; }
    .homepage-archives-btn { padding: 14px 32px; font-size: 14px; }
}

.hero { max-width: var(--max-width); margin: 0 auto; padding: 24px var(--side-padding) 0; animation: fadeInUp 0.4s ease-out both; }

.hero-inner { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }

.hero-main { display: block; border-radius: 12px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; padding: 12px; margin: -12px; }
.hero-main:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.hero-main:hover .hero-main-image { filter: brightness(1.03); }

.hero-main-image {
    width: 100%; aspect-ratio: 16/9;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; overflow: hidden;
    transition: filter 0.3s ease;
}

.hero-icon {
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(20px);
    border-radius: 24px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.hero-main-content { padding: 20px 0; }
.hero-main-content h1 { font-size: 36px; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 12px; }

.hero-sidebar { display: flex; flex-direction: column; gap: 24px; }
.hero-sidebar-card { display: block; transition: transform 0.25s ease, box-shadow 0.25s ease; padding: 12px; margin: -12px; border-radius: 12px; }
.hero-sidebar-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

.sidebar-image {
    width: 100%; aspect-ratio: 16/10; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    transition: filter 0.25s ease;
}
.hero-sidebar-card:hover .sidebar-image { filter: brightness(1.05); }

.sidebar-title-overlay { font-size: 28px; font-weight: 800; color: var(--white); letter-spacing: -0.03em; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.hero-sidebar-card h3 { font-size: 16px; font-weight: 700; margin-top: 12px; margin-bottom: 8px; line-height: 1.3; letter-spacing: -0.02em; }

/* ==================== ARTICLE META ==================== */
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.category { font-weight: 600; color: var(--gray-900); }
.read-time, .date { color: var(--gray-500); }

/* ==================== RECENT NEWS ==================== */
.recent-news { max-width: var(--max-width); margin: 0 auto; padding: 64px var(--side-padding); }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.section-header h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-family: 'Panchang', 'Plus Jakarta Sans', sans-serif; text-transform: uppercase; }

.see-more { font-size: 14px; font-weight: 500; color: var(--gray-800); transition: color 0.2s; }
.see-more:hover { color: var(--black); text-decoration: underline; }

.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }

.news-card { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; transition: transform 0.25s ease, box-shadow 0.25s ease; border-radius: 12px; padding: 12px; margin: -12px; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

.news-card-image { width: 200px; height: 140px; border-radius: 10px; overflow: hidden; flex-shrink: 0; transition: filter 0.25s ease, transform 0.25s ease; }
.news-card:hover .news-card-image { filter: brightness(1.05); transform: scale(1.02); }

.placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.img-text { font-size: 14px; font-weight: 700; color: var(--white); text-shadow: 0 1px 4px rgba(0,0,0,0.2); }

.news-card-content h3 { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 12px; }

/* ==================== MODEL COMPARATOR ==================== */
.model-compare { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--side-padding) 80px; }

/* Category tabs */
.compare-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.compare-tab {
    padding: 8px 18px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.compare-tab:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.compare-tab.active {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
}

.compare-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }

/* Flip container */
.model-flip {
    position: relative;
    height: 310px;
}

.model-flip.has-back { cursor: pointer; }

.model-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.model-flip.flipped .model-flip-inner {
    transform: rotateY(180deg);
}

/* Shared card face styles */
.model-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.model-card-front { z-index: 2; }

.model-card-back {
    transform: rotateY(180deg);
    z-index: 1;
}

/* Accent bar on top - on each card face so it follows flip */
.model-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
    z-index: 3;
    pointer-events: none;
}

.model-flip[data-accent="purple"] .model-card::before { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.model-flip[data-accent="green"] .model-card::before { background: linear-gradient(90deg, #22c55e, #16a34a); }
.model-flip[data-accent="blue"] .model-card::before { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.model-flip[data-accent="orange"] .model-card::before { background: linear-gradient(90deg, #f97316, #ea580c); }
.model-flip[data-accent="pink"] .model-card::before { background: linear-gradient(90deg, #ec4899, #db2777); }
.model-flip[data-accent="teal"] .model-card::before { background: linear-gradient(90deg, #14b8a6, #0d9488); }

/* Bar fill colors */
.model-flip[data-accent="purple"] .model-card-bar-fill { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.model-flip[data-accent="green"] .model-card-bar-fill { background: linear-gradient(90deg, #22c55e, #16a34a); }
.model-flip[data-accent="blue"] .model-card-bar-fill { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.model-flip[data-accent="orange"] .model-card-bar-fill { background: linear-gradient(90deg, #f97316, #ea580c); }
.model-flip[data-accent="pink"] .model-card-bar-fill { background: linear-gradient(90deg, #ec4899, #db2777); }
.model-flip[data-accent="teal"] .model-card-bar-fill { background: linear-gradient(90deg, #14b8a6, #0d9488); }

/* Hover effect on whole flip container */
.model-flip:hover {
    transform: translateY(-2px);
    transition: transform 0.2s;
}

.model-flip:hover .model-card {
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* Card top row: rank + name + editor */
.model-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    min-height: 28px;
}

.model-card-rank {
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    background: var(--gray-900);
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 6px;
}

.model-card-rank.rank-1 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.model-card-rank.rank-2 { background: linear-gradient(135deg, #9ca3af, #6b7280); }
.model-card-rank.rank-3 { background: linear-gradient(135deg, #d97706, #92400e); }

/* Org logo */
.model-card-logo-wrap {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.model-card-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
}

.model-card-logo-fallback {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
}

.model-card-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-card-editor {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* Score section */
.model-card-score { margin-bottom: 18px; }

.model-card-score-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.model-card-score-label span:first-child {
    font-size: 12px; font-weight: 500; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: 0.04em;
}

.model-card-score-value {
    font-size: 28px; font-weight: 800;
    letter-spacing: -0.03em; color: var(--gray-900);
}

.model-card-bar {
    width: 100%; height: 6px;
    background: var(--gray-100); border-radius: 3px; overflow: hidden;
}

.model-card-bar-fill {
    height: 100%; border-radius: 3px;
    transition: width 0.6s ease;
}

/* Details rows */
.model-card-details { display: flex; flex-direction: column; gap: 8px; }

.model-card-row { display: flex; justify-content: space-between; align-items: center; }
.model-card-row-label { font-size: 13px; color: var(--gray-500); }
.model-card-row-value { font-size: 13px; font-weight: 600; color: var(--gray-900); }

.model-tag {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.model-tag-yes { background: #dcfce7; color: #166534; }
.model-tag-no { background: var(--gray-100); color: var(--gray-500); }

/* "Click for more" hint */
.model-card-hint {
    margin-top: auto;
    padding-top: 12px;
    font-size: 11px;
    color: var(--gray-400);
    text-align: center;
    letter-spacing: 0.02em;
}

/* Back card sections */
.model-card-back-section {
    margin-bottom: 14px;
}

.model-card-back-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gray-100);
}

.model-card-hf-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    transition: color 0.2s;
    margin-top: auto;
    padding-top: 8px;
}

.model-card-hf-link:hover { color: var(--black); }

/* Update note */
.compare-update {
    font-size: 12px; color: var(--gray-400);
    text-align: right; margin-top: 12px;
}

.compare-loading {
    grid-column: 1 / -1;
    text-align: center; padding: 48px;
    color: var(--gray-400); font-size: 14px;
}

/* ==================== GRADIENTS ==================== */
.gradient-blue-purple {
    background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 25%, #7c3aed 50%, #c084fc 75%, #a78bfa 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}
.gradient-blue { background: linear-gradient(135deg, #6366f1 0%, #818cf8 40%, #a78bfa 70%, #c4b5fd 100%); }
.gradient-orange { background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%); }
.gradient-dark { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%); }
.gradient-pink-purple { background: linear-gradient(135deg, #d946ef 0%, #a78bfa 50%, #818cf8 100%); }
.gradient-purple { background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #6d28d9 100%); }
.gradient-light-blue { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #ddd6fe 100%); }
.gradient-blue-green { background: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #34d399 100%); }
.gradient-green-teal { background: linear-gradient(135deg, #6ee7b7 0%, #a7f3d0 30%, #99f6e4 60%, #bfdbfe 100%); }
.gradient-warm { background: linear-gradient(135deg, #374151 0%, #4b5563 100%); }
.gradient-cool { background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%); }
.gradient-neutral { background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%); }
.gradient-earth { background: linear-gradient(135deg, #78716c 0%, #a8a29e 100%); }
.gradient-sky { background: linear-gradient(135deg, #475569 0%, #64748b 100%); }
.gradient-city { background: linear-gradient(135deg, #6b7280 0%, #9ca3af 40%, #d1d5db 100%); }
.gradient-research { background: linear-gradient(135deg, #4b5563 0%, #6b7280 40%, #9ca3af 100%); }

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

/* ==================== ARCHIVES ==================== */
.archives-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px var(--side-padding) 64px;
}

.archives-header {
    margin-bottom: 48px;
    animation: fadeInUp 0.4s ease-out both;
}

.archives-header h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
 font-family: 'Panchang', 'Plus Jakarta Sans', sans-serif; text-transform: uppercase;}

.archives-subtitle {
    font-size: 18px;
    color: var(--gray-500);
}

.archives-month {
    margin-bottom: 48px;
    animation: fadeInUp 0.4s ease-out both;
}

.archives-month-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-400);
    letter-spacing: -0.02em;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 24px;
 font-family: 'Panchang', 'Plus Jakarta Sans', sans-serif; text-transform: uppercase;}

.archives-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.archives-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: center;
    padding: 12px;
    margin: -12px;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.archives-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.archives-card-thumb {
    width: 160px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    transition: filter 0.25s ease;
}

.archives-card:hover .archives-card-thumb {
    filter: brightness(1.05);
}

.archives-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 6px;
}

.archives-card-info h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.archives-card-summary {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .archives-header h1 { font-size: 30px; }
    .archives-card { grid-template-columns: 100px 1fr; gap: 16px; }
    .archives-card-thumb { width: 100px; height: 70px; }
    .archives-card-info h3 { font-size: 15px; }
    .archives-card-summary { display: none; }
}

/* ==================== FOOTER ==================== */
.footer { border-top: 1px solid var(--gray-200); padding: 64px 0 32px; }

.footer-inner {
    max-width: var(--max-width); margin: 0 auto;
    padding: 0 var(--side-padding);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px;
}

.footer-column h4 { font-size: 13px; font-weight: 400; color: var(--gray-500); margin-bottom: 16px; margin-top: 32px; }
.footer-column h4:first-child { margin-top: 0; }
.footer-column ul { display: flex; flex-direction: column; gap: 10px; }
.footer-column a { font-size: 14px; font-weight: 400; color: var(--gray-800); display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s; }
.footer-column a:hover { color: var(--black); }

.footer-bottom {
    max-width: var(--max-width); margin: 0 auto;
    padding: 48px var(--side-padding) 0;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--gray-200); margin-top: 48px;
}
.footer-bottom p { font-size: 14px; color: var(--gray-500); }

.social-links { display: flex; gap: 20px; }
.social-links a { color: var(--gray-500); transition: color 0.2s, transform 0.2s ease; display: inline-flex; align-items: center; gap: 8px; }
.social-links a:hover { color: var(--black); transform: translateY(-2px); }
.social-links-vertical { flex-direction: column; gap: 12px; }
.social-links-vertical a { font-size: 14px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .hero-inner { grid-template-columns: 1fr 320px; }
    .news-grid { gap: 32px 48px; }
    .compare-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    :root { --side-padding: 32px; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-sidebar { flex-direction: row; }
    .hero-sidebar-card { flex: 1; }
    .compare-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --side-padding: 20px; }
    .nav-links { display: none; }
    .search-btn { display: none; }
    .nav-right { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-main-content h1 { font-size: 24px; }
    .hero-sidebar { flex-direction: column; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card { grid-template-columns: 140px 1fr; gap: 16px; }
    .news-card-image { width: 140px; height: 100px; }
    .news-card-content h3 { font-size: 16px; }
    .section-header h2 { font-size: 22px; }
    .compare-cards { grid-template-columns: 1fr; }
    .model-flip { height: 280px; }
    .footer-inner { grid-template-columns: 1fr; gap: 0; }
    .footer-column { padding-bottom: 24px; }
}

/* ==================== ADMIN STYLES ==================== */
.admin-body {
    background: var(--gray-50);
    min-height: 100vh;
}

/* Login */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
}

.login-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.login-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 4px;
}

.login-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.2s;
    outline: none;
}

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

.form-group textarea {
    resize: vertical;
    line-height: 1.6;
}

.form-error {
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 12px;
}

.btn-full {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    justify-content: center;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fef2f2;
    color: #dc2626;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #fee2e2;
}

/* Admin Header */
.admin-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-badge {
    background: var(--gray-900);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.coming-soon-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-200);
    border-radius: 20px;
    transition: background 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background: #6366f1;
}

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

.admin-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-500);
}

/* Admin Main */
.admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
}

/* Toolbar */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

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

.admin-tab {
    padding: 8px 18px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-tab:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}

.admin-tab.active {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
}

.admin-tab.active .tab-count {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.tab-count {
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-row {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: box-shadow 0.2s;
}

.article-row:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.article-row-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.article-row-thumb {
    width: 64px;
    height: 44px;
    border-radius: 6px;
    flex-shrink: 0;
}

.article-row-info {
    min-width: 0;
}

.article-row-info h4 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.article-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.article-row-cat {
    font-weight: 600;
    color: var(--gray-600);
}

.article-row-date {
    color: var(--gray-400);
}

.article-row-status {
    font-weight: 600;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 999px;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.status-published {
    background: #dcfce7;
    color: #166534;
}

.article-row-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 64px 0;
    color: var(--gray-400);
    font-size: 14px;
}

/* Editor */
.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.editor-actions {
    display: flex;
    gap: 8px;
}

.editor-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

.editor-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-half {
    flex: 1;
}

.upload-zone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-zone input[type="file"] {
    font-size: 12px;
    color: var(--gray-600);
}

#upload-status {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.current-image-box {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-image-box img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

/* Preview */
.editor-preview {
    position: sticky;
    top: 80px;
}

.preview-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.preview-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.preview-image {
    width: 100%;
    aspect-ratio: 16/10;
}

.preview-content {
    padding: 16px;
}

.preview-content h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.preview-summary {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Responsive admin */
@media (max-width: 900px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }
    .editor-preview {
        position: static;
    }
    .article-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .article-row-actions {
        margin-top: 10px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Fix hidden attribute override */
[hidden] {
    display: none !important;
}
/* ==================== ARTICLE PAGE ==================== */
/* Page transition animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

body {
    animation: fadeIn 0.3s ease-out;
}

body.page-exit {
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

.article-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px var(--side-padding) 64px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 24px;
    transition: color 0.2s, transform 0.2s ease;
}

.back-link:hover {
    color: var(--black);
    transform: translateX(-3px);
}

.article-hero {
    width: 100%;
    aspect-ratio: 3/1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-out both;
}

.article-body {
    max-width: 720px;
    margin: 0 auto;
}

.article-body .article-meta {
    margin-bottom: 16px;
    animation: fadeInUp 0.5s ease-out 0.15s both;
}

.article-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--gray-900);
    animation: fadeInUp 0.5s ease-out 0.25s both;
}

.article-summary {
    font-size: 20px;
    line-height: 1.5;
    color: var(--gray-500);
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-200);
    animation: fadeInUp 0.5s ease-out 0.35s both;
}

.article-content {
    animation: fadeInUp 0.5s ease-out 0.45s both;
}

.article-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-800);
    margin-bottom: 24px;
}

.article-content .no-content {
    color: var(--gray-400);
    font-style: italic;
}

.article-loading {
    text-align: center;
    padding: 80px 0;
    color: var(--gray-300);
    font-size: 14px;
    animation: fadeIn 0.3s ease-out both;
}

.article-error {
    text-align: center;
    padding: 80px 0;
    color: var(--gray-500);
    font-size: 18px;
    font-weight: 500;
}

/* Responsive article */
@media (max-width: 768px) {
    .article-hero {
        aspect-ratio: 16/9;
        border-radius: 0;
        margin-left: calc(-1 * var(--side-padding));
        margin-right: calc(-1 * var(--side-padding));
        width: calc(100% + 2 * var(--side-padding));
    }

    .article-title {
        font-size: 28px;
    }

    .article-summary {
        font-size: 17px;
    }

    .article-content p {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* ==================== ARTICLE MARKDOWN ==================== */
.article-content h2 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--gray-900);
    margin-top: 48px;
    margin-bottom: 20px;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin-top: 40px;
    margin-bottom: 16px;
}

.article-content h4 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--gray-900);
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-content h2:first-child,
.article-content h3:first-child,
.article-content h4:first-child {
    margin-top: 0;
}

.article-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
    list-style: disc;
}

.article-content ul li {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.article-content ul li:last-child {
    margin-bottom: 0;
}

.article-content strong {
    font-weight: 700;
    color: var(--gray-900);
}

.article-content em {
    font-style: italic;
}

@media (max-width: 768px) {
    .article-content h2 {
        font-size: 24px;
        margin-top: 36px;
    }

    .article-content h3 {
        font-size: 20px;
        margin-top: 28px;
    }

    .article-content h4 {
        font-size: 18px;
        margin-top: 24px;
    }

    .article-content ul li {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* ==================== ANNOTATIONS (Genius-style) ==================== */
.annotation-term {
    background: rgba(251, 191, 36, 0.12);
    border-bottom: 2px solid rgba(217, 119, 6, 0.35);
    cursor: pointer;
    padding: 1px 3px;
    border-radius: 3px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.annotation-term:hover,
.annotation-term:focus {
    background: rgba(251, 191, 36, 0.28);
    border-bottom-color: rgba(217, 119, 6, 0.7);
    box-shadow: 0 1px 6px rgba(251, 191, 36, 0.25);
    outline: none;
}

/* Popup */
.annotation-popup {
    position: absolute;
    z-index: 1000;
    background: var(--gray-900);
    color: var(--white);
    border-radius: 10px;
    padding: 16px 20px;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24), 0 2px 8px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.annotation-popup-visible {
    opacity: 1;
    transform: translateY(0);
}

.annotation-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.annotation-popup-body {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* Mobile: bottom sheet */
.annotation-popup-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    max-width: none;
    border-radius: 16px 16px 0 0;
    padding: 24px 24px 32px;
    transform: translateY(100%);
}

.annotation-popup-mobile.annotation-popup-visible {
    transform: translateY(0);
}

.annotation-popup-mobile .annotation-popup-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.annotation-popup-mobile .annotation-popup-body {
    font-size: 15px;
}

/* ==================== ADMIN: ANNOTATIONS EDITOR ==================== */
.annotations-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

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

.annotations-section-header label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}

.annotation-entries {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.annotation-entry {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 8px;
    align-items: start;
}

.annotation-entry input,
.annotation-entry textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    color: var(--gray-900);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
}

.annotation-entry input:focus,
.annotation-entry textarea:focus {
    border-color: var(--gray-900);
}

.annotation-entry textarea {
    resize: vertical;
    min-height: 36px;
    line-height: 1.4;
}

.annotation-entry .btn-remove-annotation {
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 16px;
    transition: color 0.2s, border-color 0.2s;
}

.annotation-entry .btn-remove-annotation:hover {
    color: #dc2626;
    border-color: #fecaca;
}

.annotations-empty {
    font-size: 13px;
    color: var(--gray-400);
    font-style: italic;
    padding: 8px 0;
}

@media (max-width: 768px) {
    .annotation-entry {
        grid-template-columns: 1fr;
    }
}

/* ==================== PRICING PAGE ==================== */
.pricing-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--side-padding) 80px;
}

/* Banners */
.pricing-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.pricing-banner-success {
    background: #dcfce7;
    color: #166534;
}

.pricing-banner-cancel {
    background: #fef3c7;
    color: #92400e;
}

/* Hero */
.pricing-hero {
    text-align: center;
    padding: 72px 0 56px;
}

.pricing-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gray-900);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 24px;
}

.pricing-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--gray-900);
    margin-bottom: 20px;
 font-family: 'Panchang', 'Plus Jakarta Sans', sans-serif;}

.pricing-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-500);
    max-width: 520px;
    margin: 0 auto;
}

/* Pricing Layout: Features + Card side by side */
.pricing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 56px;
}

/* Features side */
.pricing-features-side-title {
    font-family: 'Panchang', 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gray-900);
    margin-bottom: 28px;
    text-transform: uppercase;
}

.pricing-features-side-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    list-style: none;
}

.pricing-features-side-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pricing-feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f0fdf4;
    color: #16a34a;
}

.pricing-features-side-list li strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.pricing-feature-sub {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.4;
}

.pricing-coming-soon {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px dashed var(--gray-200);
}

.pricing-coming-soon-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: #6366f1;
}

.pricing-coming-soon strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

/* Unified Card */
.pricing-card-unified {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    
}

/* Toggle tabs */
.pricing-toggle {
    display: flex;
    background: var(--gray-100);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 32px;
}

.pricing-toggle-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pricing-toggle-active {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pricing-toggle-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

/* Plan view */
.pricing-plan-view {
    text-align: center;
}

.pricing-card-unified .pricing-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.pricing-card-unified .pricing-card-amount {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--gray-900);
    line-height: 1;
}

.pricing-card-price-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 4px;
}

.pricing-card-unified .pricing-card-currency {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

.pricing-card-unified .pricing-card-period {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
}

.pricing-card-detail {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.pricing-card-unified .pricing-card-savings {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.pricing-card-btn-main {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 999px;
    background: var(--gray-900);
    color: var(--white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 20px;
}

.pricing-card-btn-main:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pricing-card-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-400);
}

.pricing-card-guarantee svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .pricing-card-unified {
        position: static;
        order: -1;
    }
    .pricing-card-unified .pricing-card-amount {
        font-size: 44px;
    }
}


/* Plan switch animation */
.pricing-plan-view {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pricing-plan-exit {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.pricing-plan-enter {
    animation: pricingFadeIn 0.3s ease forwards;
}

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

/* Auth */
.pricing-auth {
    margin-bottom: 48px;
}

.pricing-auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.pricing-auth-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.pricing-auth-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.pricing-auth-form .form-group {
    margin-bottom: 16px;
}

.pricing-auth-form .btn-primary {
    margin-top: 8px;
}

.pricing-auth-toggle {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-500);
}

.pricing-auth-toggle-btn {
    background: none;
    border: none;
    color: var(--gray-900);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-left: 4px;
}

.pricing-auth-toggle-btn:hover {
    color: var(--black);
}

/* Premium badge */
.pricing-premium {
    margin-bottom: 48px;
}

.pricing-premium-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 16px;
    padding: 48px 32px;
}

.pricing-premium-card svg {
    color: #16a34a;
    margin-bottom: 16px;
}

.pricing-premium-card h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #166534;
    margin-bottom: 8px;
}

.pricing-premium-card p {
    font-size: 15px;
    color: #15803d;
    margin-bottom: 24px;
}

.pricing-premium-card .btn-primary {
    display: inline-flex;
}

/* Guarantee */
.pricing-guarantee {
    text-align: center;
    font-size: 13px;
    color: var(--gray-400);
    padding-bottom: 24px;
}

/* Responsive pricing */
@media (max-width: 768px) {
    .pricing-hero {
        padding: 48px 0 40px;
    }

    .pricing-title {
        font-size: 36px;
    }

    .pricing-subtitle {
        font-size: 16px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-features-list {
        grid-template-columns: 1fr;
    }

    .pricing-card-amount {
        font-size: 40px;
    }

    .pricing-auth-card {
        padding: 28px 20px;
    }
}

/* ==================== PAYWALL ==================== */
.paywall-blurred {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.paywall-overlay {
    position: absolute;
    bottom: 0;
    left: -24px;
    right: -24px;
    top: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 20%, rgba(255,255,255,0.98) 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.paywall-inner {
    text-align: center;
    padding: 40px 32px;
    max-width: 420px;
}

.paywall-icon {
    color: var(--gray-400);
    margin-bottom: 16px;
}

.paywall-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gray-900);
    margin-bottom: 12px;
 font-family: 'Panchang', 'Plus Jakarta Sans', sans-serif;}

.paywall-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.paywall-btn {
    display: inline-flex;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 999px;
    margin-bottom: 12px;
}

.paywall-sub {
    font-size: 13px;
    color: var(--gray-400);
}

@media (max-width: 768px) {
    .paywall-overlay {
        left: calc(-1 * var(--side-padding));
        right: calc(-1 * var(--side-padding));
    }

    .paywall-title {
        font-size: 20px;
    }

    .paywall-inner {
        padding: 32px 20px;
    }
}
/* ==================== ARCHIVES PAYWALL ==================== */
.archives-paywall {
    position: relative;
    margin-top: 24px;
    overflow: hidden;
    border-radius: 20px;
}

.archives-paywall-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px;
    filter: blur(8px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.archives-paywall-ghost {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: center;
    padding: 12px;
}

.archives-paywall-ghost .archives-card-thumb {
    width: 160px;
    height: 100px;
    border-radius: 10px;
}

.archives-paywall-ghost-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ghost-line {
    height: 14px;
    border-radius: 7px;
    background: var(--gray-200);
}

.ghost-line-short { width: 30%; }
.ghost-line-long { width: 85%; }
.ghost-line-med { width: 60%; }

.archives-paywall-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 15%,
        rgba(255, 255, 255, 0.95) 40%,
        rgba(255, 255, 255, 1) 60%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.archives-paywall-inner {
    text-align: center;
    padding: 48px 32px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.archives-paywall-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gray-900);
    color: var(--white);
    margin-bottom: 20px;
}

.archives-paywall-badge {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    padding: 5px 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.archives-paywall-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gray-900);
    margin-bottom: 14px;
    line-height: 1.15;
 font-family: 'Panchang', 'Plus Jakarta Sans', sans-serif;}

.archives-paywall-desc {
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-500);
    margin-bottom: 28px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.archives-paywall-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 999px;
    background: var(--gray-900);
    color: var(--white);
    transition: all 0.25s ease;
    margin-bottom: 14px;
}

.archives-paywall-btn:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.archives-paywall-sub {
    font-size: 13px;
    color: var(--gray-400);
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .archives-paywall-ghost {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }
    .archives-paywall-ghost .archives-card-thumb {
        width: 80px;
        height: 56px;
    }
    .archives-paywall-inner {
        padding: 40px 20px;
    }
    .archives-paywall-title {
        font-size: 24px;
    }
    .archives-paywall-desc {
        font-size: 14px;
    }
    .archives-paywall-icon {
        width: 52px;
        height: 52px;
    }
    .archives-paywall-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Language toggle */
.lang-toggle {
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.12);
    color: #555;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-transform: uppercase;
}
.lang-toggle:hover {
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.3);
    color: #6366f1;
}

/* Admin lang badge */
.article-row-lang {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(99,102,241,0.12);
    color: #6366f1;
}
.form-quarter {
    flex: 0 0 auto;
    width: 80px;
}

/* ==================== ACCOUNT PAGE ==================== */
.account-section {
    max-width: 640px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}
.account-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
    color: #1a1a2e;
}
.account-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
}
.account-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a2e;
}
.account-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.account-field:last-child { border-bottom: none; }
.account-label {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}
.account-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
}
.account-desc {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}
.account-danger {
    border-color: rgba(239,68,68,0.15);
    background: rgba(239,68,68,0.02);
}
.account-danger h2 { color: #dc2626; }
.account-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-danger:hover { background: #b91c1c; }
.btn-danger-outline {
    background: transparent;
    color: #dc2626;
    border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger-outline:hover {
    background: rgba(239,68,68,0.05);
    border-color: #dc2626;
}

/* Admin lang filter */
.admin-lang-filter {
    display: flex;
    gap: 4px;
    margin-left: 16px;
    background: rgba(0,0,0,0.04);
    border-radius: 8px;
    padding: 3px;
}
.admin-lang-btn {
    background: none;
    border: none;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #888;
    cursor: pointer;
    border-radius: 6px;
    font-family: inherit;
    transition: all 0.15s;
}
.admin-lang-btn.active {
    background: #fff;
    color: #6366f1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.admin-lang-btn:hover:not(.active) {
    color: #555;
}

/* Editor lang tabs */
.editor-lang-tabs {
    display: flex;
    gap: 4px;
    padding: 0 24px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 16px;
}
.editor-lang-tab {
    padding: 8px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    font-family: inherit;
    background: #fff;
    color: #888;
    transition: all 0.15s;
}
.editor-lang-tab.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    cursor: default;
}
.editor-lang-tab:not(.active):hover {
    background: rgba(99,102,241,0.06);
    border-color: rgba(99,102,241,0.3);
    color: #6366f1;
}
.editor-lang-tab-create {
    border-style: dashed;
    color: #aaa;
}
.editor-lang-tab-create:hover {
    border-style: solid;
}
/* Article row EN badge */
.lang-has-en {
    background: rgba(34,197,94,0.12) !important;
    color: #16a34a !important;
}
.lang-no-en {
    background: rgba(0,0,0,0.04) !important;
    color: #ccc !important;
}

/* ==================== CUSTOM MODAL ==================== */
.ctx-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 20px;
}
.ctx-modal-overlay.active { opacity: 1; }
.ctx-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.2s;
}
.ctx-modal-overlay.active .ctx-modal {
    transform: scale(1) translateY(0);
}
.ctx-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}
.ctx-modal-msg {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}
.ctx-modal-keyword {
    font-weight: 700;
    color: #ef4444;
}
.ctx-modal-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    margin-bottom: 16px;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.ctx-modal-input:focus {
    outline: none;
    border-color: #6366f1;
}
.ctx-modal-input.danger:focus {
    border-color: #ef4444;
}
.ctx-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.ctx-modal-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.ctx-modal-btn-cancel {
    background: #f3f4f6;
    color: #555;
}
.ctx-modal-btn-cancel:hover { background: #e5e7eb; }
.ctx-modal-btn-confirm {
    background: #6366f1;
    color: #fff;
}
.ctx-modal-btn-confirm:hover { background: #4f46e5; }
.ctx-modal-btn-danger {
    background: #ef4444;
    color: #fff;
}
.ctx-modal-btn-danger:hover { background: #dc2626; }
.ctx-modal-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
@media (max-width: 600px) {
    .ctx-modal { padding: 24px; }
}

/* ==================== MOBILE MENU OVERLAY ==================== */
.mm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mm-overlay.mm-open {
    opacity: 1;
    visibility: visible;
}
.mm-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 88px 28px 32px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
.mm-open .mm-inner {
    transform: translateY(0);
}
.mm-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}
.mm-link {
    display: block;
    padding: 16px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #171717;
    letter-spacing: -0.02em;
    border-bottom: 1px solid #f0f0f0;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.mm-open .mm-link {
    transform: translateY(0);
    opacity: 1;
}
.mm-link:last-child {
    border-bottom: none;
}
.mm-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #e5e5e5;
    opacity: 0;
    transform: translateY(-8px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, opacity 0.4s ease 0.15s;
}
.mm-open .mm-actions {
    opacity: 1;
    transform: translateY(0);
}
.mm-actions .btn-primary {
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 12px;
}
.mm-actions .btn-secondary {
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
    color: #171717;
    border-radius: 12px;
}
.mm-actions .lang-toggle {
    align-self: flex-start;
    padding: 10px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
    color: #171717;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
}

/* Hamburger → X animation */
.mobile-menu-btn { color: #171717; padding: 8px; }
.mobile-menu-btn svg { transition: transform 0.3s ease; }
.mm-active svg {
    transform: rotate(90deg);
}

/* ==================== BTN-SECONDARY COLOR FIX ==================== */
.btn-secondary { color: #171717; }
.pricing-premium-card .btn-secondary { color: #166534; border-color: #bbf7d0; }
.pricing-premium-card .btn-secondary:hover { background: #f0fdf4; border-color: #16a34a; }

/* ==================== BTN-SECONDARY COLOR FIX ==================== */
.btn-secondary { color: #171717; }
.pricing-premium-card .btn-secondary { color: #166534; border-color: #bbf7d0; }
.pricing-premium-card .btn-secondary:hover { background: #f0fdf4; border-color: #16a34a; }
