/* ============================================================
   TamilPNG.com — Redesigned Stylesheet v2
   Inspired by: Freepik, PNGTree, Vecteezy
   Fonts: Mukta + Noto Sans Tamil
   Colors: Saffron Orange #e65c00 + Dark Navy #0d1b2a
   ============================================================ */

:root {
    --primary:       #e65c00;
    --primary-dark:  #b84500;
    --primary-light: #ff7e29;
    --accent:        #f9a825;
    --navy:          #0d1b2a;
    --navy-light:    #1b2d3e;
    --text:          #1a1a2e;
    --text-muted:    #6b7280;
    --text-light:    #9ca3af;
    --bg:            #ffffff;
    --bg-soft:       #f8f9fb;
    --bg-gray:       #f3f4f6;
    --border:        #e5e7eb;
    --border-dark:   #d1d5db;
    --premium:       #7c3aed;
    --premium-light: #ede9fe;
    --success:       #059669;
    --danger:        #dc2626;
    --radius:        10px;
    --radius-lg:     16px;
    --shadow:        0 2px 12px rgba(0,0,0,0.07);
    --shadow-md:     0 4px 24px rgba(0,0,0,0.1);
    --shadow-hover:  0 8px 32px rgba(230,92,0,0.15);
    --font-main:     'Mukta','Noto Sans Tamil',sans-serif;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 20px; }

/* ═══════════ FLASH ═══════════ */
.flash { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 9999; padding: 12px 24px; border-radius: var(--radius); display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-md); min-width: 300px; max-width: 500px; animation: slideDown 0.3s ease; }
.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.flash-info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.flash-close   { background: none; border: none; cursor: pointer; font-size: 18px; opacity: 0.6; padding: 0 4px; }
@keyframes slideDown { from { top: 50px; opacity: 0; } to { top: 70px; opacity: 1; } }

/* ═══════════ NAVBAR ═══════════ */
.navbar { background: var(--navy); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 16px rgba(0,0,0,0.3); }
.nav-inner { display: flex; align-items: center; gap: 16px; padding: 10px 20px; max-width: 1260px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.logo-tamil { width: 36px; height: 36px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 18px; font-family: 'Noto Sans Tamil',sans-serif; }
.logo-text { color: white; font-weight: 700; font-size: 1.1rem; }
.logo-dot { color: var(--primary-light); }
.nav-search { flex: 1; max-width: 520px; display: flex; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.15); transition: border-color 0.2s; }
.nav-search:focus-within { border-color: var(--primary); background: rgba(255,255,255,0.15); }
.nav-search input { flex: 1; background: none; border: none; outline: none; padding: 9px 14px; color: white; font-family: var(--font-main); font-size: 14px; }
.nav-search input::placeholder { color: rgba(255,255,255,0.45); }
.nav-search button { background: var(--primary); border: none; color: white; padding: 9px 18px; cursor: pointer; font-size: 16px; transition: background 0.2s; }
.nav-search button:hover { background: var(--primary-dark); }
.nav-links { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: 14px; }
.nav-links a:hover { color: white; }
.nav-user { display: flex; align-items: center; gap: 7px; color: white !important; }
.user-avatar { width: 30px; height: 30px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: white; flex-shrink: 0; }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 4px; }

/* ═══════════ HERO V2 ═══════════ */
.hero-v2 { background: linear-gradient(135deg, var(--navy) 0%, #1a2d45 60%, #0d2438 100%); padding: 56px 0 52px; overflow: hidden; }
.hero-v2-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-election-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(230,92,0,0.2); border: 1px solid rgba(230,92,0,0.5); color: #ffad7a; border-radius: 999px; padding: 6px 18px; font-size: 13px; font-weight: 600; margin-bottom: 20px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(230,92,0,0.4); } 50% { box-shadow: 0 0 0 8px rgba(230,92,0,0); } }
.hero-v2 h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: white; margin-bottom: 10px; line-height: 1.2; }
.hero-accent { color: var(--primary-light); }
.hero-tamil-text { font-family: 'Noto Sans Tamil',sans-serif; color: rgba(255,255,255,0.6); font-size: 1rem; margin-bottom: 10px; }
.hero-sub { color: rgba(255,255,255,0.75); font-size: 15px; max-width: 560px; margin: 0 auto 28px; line-height: 1.7; }
.hero-search-v2 { display: flex; width: 100%; max-width: 640px; background: white; border-radius: 50px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.3); margin-bottom: 20px; }
.search-icon-wrap { display: flex; align-items: center; padding: 0 16px; font-size: 18px; color: var(--text-muted); flex-shrink: 0; }
.hero-search-v2 input { flex: 1; border: none; outline: none; padding: 14px 0; font-size: 15px; font-family: var(--font-main); color: var(--text); background: transparent; }
.hero-search-v2 button { background: var(--primary); color: white; border: none; padding: 0 28px; font-size: 14px; font-weight: 700; cursor: pointer; border-radius: 0 50px 50px 0; transition: background 0.2s; white-space: nowrap; }
.hero-search-v2 button:hover { background: var(--primary-dark); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-bottom: 32px; }
.hero-tags span { color: rgba(255,255,255,0.5); font-size: 13px; }
.hero-tags a { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; padding: 4px 14px; font-size: 13px; transition: all 0.2s; }
.hero-tags a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.hero-v2-stats { display: flex; gap: 32px; padding: 20px 32px; background: rgba(255,255,255,0.07); border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; justify-content: center; }
.hero-stat-v2 { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hsv-num { font-size: 1.6rem; font-weight: 700; color: white; line-height: 1; }
.hsv-label { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.hsv-divider { width: 1px; background: rgba(255,255,255,0.15); align-self: stretch; }

/* ═══════════ CATEGORY BAR ═══════════ */
.cat-bar { background: white; border-bottom: 1.5px solid var(--border); padding: 0; position: sticky; top: 57px; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.cat-bar-inner { display: flex; gap: 4px; overflow-x: auto; padding: 10px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-bar-inner::-webkit-scrollbar { display: none; }
.cat-pill-v2 { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-muted); border: 1.5px solid transparent; transition: all 0.18s; flex-shrink: 0; background: var(--bg-soft); }
.cat-pill-v2:hover, .cat-pill-v2.active { background: var(--primary); color: white; border-color: var(--primary); }
.cpi { font-size: 14px; }
.cp-tamil { font-family: 'Noto Sans Tamil',sans-serif; font-size: 10px; opacity: 0.7; }

/* ═══════════ AD SLOTS ═══════════ */
.ad-slot { display: flex; justify-content: center; align-items: center; }
.ad-placeholder { background: #f3f4f6; border: 2px dashed #d1d5db; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 13px; width: 728px; height: 90px; max-width: 100%; }

/* ═══════════ SECTION HEADERS ═══════════ */
.section-v2 { padding: 32px 0; }
.section-head-v2 { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.section-title-v2 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.section-title-v2 span { color: var(--primary); }
.section-sub { font-size: 13px; color: var(--text-muted); }
.view-all-btn { font-size: 13px; font-weight: 700; color: var(--primary); border: 1.5px solid var(--primary); border-radius: 999px; padding: 7px 18px; transition: all 0.2s; white-space: nowrap; }
.view-all-btn:hover { background: var(--primary); color: white; }

/* ═══════════ IMAGE GRID V2 ═══════════ */
.image-grid-v2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.img-card-v2 { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-gray); border: 1.5px solid var(--border); transition: all 0.22s; cursor: pointer; display: block; }
.img-card-v2:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.img-card-thumb { aspect-ratio: 1/1; background: #f0ece6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Crect width='10' height='10' fill='%23e8e8e8'/%3E%3Crect x='10' y='10' width='10' height='10' fill='%23e8e8e8'/%3E%3Crect x='10' width='10' height='10' fill='%23f5f5f5'/%3E%3Crect y='10' width='10' height='10' fill='%23f5f5f5'/%3E%3C/svg%3E"); overflow: hidden; position: relative; }
.img-card-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform 0.3s; }
.img-card-v2:hover .img-card-thumb img { transform: scale(1.06); }
.img-card-overlay { position: absolute; inset: 0; background: rgba(13,27,42,0.55); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.img-card-v2:hover .img-card-overlay { opacity: 1; }
.img-card-dl-btn { background: var(--primary); color: white; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.icv-badge-free { position: absolute; top: 8px; left: 8px; background: var(--success); color: white; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; z-index: 2; }
.icv-badge-new { position: absolute; top: 8px; right: 8px; background: var(--accent); color: #7a4a00; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; z-index: 2; }
.img-card-info-v2 { padding: 10px 12px 12px; }
.icv-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icv-meta { display: flex; align-items: center; justify-content: space-between; }
.icv-cat { font-size: 11px; color: var(--text-muted); background: var(--bg-gray); padding: 2px 8px; border-radius: 999px; }
.icv-downloads { font-size: 11px; color: var(--text-light); }

/* ═══════════ ELECTION SECTION ═══════════ */
.election-section { background: linear-gradient(180deg, #fff9f5 0%, #ffffff 100%); border-top: 3px solid var(--primary); padding-top: 28px; }
.election-upload-cta { text-align: center; padding: 48px 20px; background: var(--bg-soft); border-radius: 16px; border: 2px dashed var(--border-dark); }
.euc-icon { font-size: 3rem; margin-bottom: 12px; }
.election-upload-cta h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.election-upload-cta p { color: var(--text-muted); margin-bottom: 20px; }

/* ═══════════ REGISTER CTA BANNER ═══════════ */
.register-cta-banner { background: linear-gradient(90deg, var(--primary) 0%, #ff7e29 100%); padding: 20px 0; }
.rcb-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rcb-text h3 { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.rcb-text p { color: rgba(255,255,255,0.85); font-size: 13px; }
.rcb-text strong { color: white; }
.rcb-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-rcb-primary { background: white; color: var(--primary); font-weight: 700; font-size: 14px; padding: 10px 22px; border-radius: 999px; transition: all 0.2s; white-space: nowrap; }
.btn-rcb-primary:hover { background: var(--navy); color: white; }
.btn-rcb-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.7); font-weight: 600; font-size: 14px; padding: 10px 22px; border-radius: 999px; transition: all 0.2s; white-space: nowrap; }
.btn-rcb-outline:hover { background: rgba(255,255,255,0.15); }

/* ═══════════ CATEGORIES GRID V2 ═══════════ */
.cat-grid-v2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.cat-card-v2 { background: white; border: 1.5px solid var(--border); border-radius: 14px; padding: 20px 12px 16px; text-align: center; transition: all 0.22s; cursor: pointer; display: block; }
.cat-card-v2:hover { border-color: var(--cat-color,var(--primary)); transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
.cat-card-icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.cat-card-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.cat-card-tamil { font-family: 'Noto Sans Tamil',sans-serif; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.cat-card-count { font-size: 11px; color: var(--cat-color, var(--primary)); font-weight: 600; background: color-mix(in srgb, var(--cat-color, var(--primary)) 12%, white); padding: 2px 10px; border-radius: 999px; display: inline-block; }

/* ═══════════ HOW IT WORKS ═══════════ */
.how-section { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 48px 0; }
.how-steps { display: flex; align-items: flex-start; justify-content: center; gap: 16px; flex-wrap: wrap; }
.how-step { background: white; border: 1.5px solid var(--border); border-radius: 16px; padding: 28px 20px; text-align: center; flex: 1; min-width: 180px; max-width: 240px; }
.how-num { width: 28px; height: 28px; background: var(--primary); color: white; border-radius: 50%; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.how-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.how-step h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.how-step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.how-arrow { font-size: 1.5rem; color: var(--border-dark); align-self: center; flex-shrink: 0; }

/* ═══════════ BUTTONS ═══════════ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; border: 1.5px solid transparent; font-family: var(--font-main); text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: white; }
.btn-premium { background: var(--premium); color: white; border-color: var(--premium); }
.btn-premium:hover { background: #6d28d9; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ═══════════ SECTION (old pages compatibility) ═══════════ */
.section { padding: 28px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 1.3rem; font-weight: 700; }
.section-title span { color: var(--primary); }
.section-link { font-size: 13px; color: var(--primary); font-weight: 600; }
.hero { background: linear-gradient(135deg,var(--navy),#1a2d45); padding: 48px 0; text-align: center; }
.hero-title { font-size: 2rem; font-weight: 700; color: white; margin-bottom: 8px; }
.hero-search { display: flex; max-width: 560px; margin: 24px auto 16px; border-radius: 50px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.hero-search input { flex: 1; border: none; outline: none; padding: 14px 20px; font-size: 15px; font-family: var(--font-main); }
.hero-search button { background: var(--primary); color: white; border: none; padding: 14px 24px; font-size: 15px; cursor: pointer; font-weight: 700; border-radius: 0 50px 50px 0; }
.hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.hero-stat { display: flex; flex-direction: column; align-items: center; }
.hero-stat-num { font-size: 1.4rem; font-weight: 700; color: white; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); }
.hero-sub { color: rgba(255,255,255,0.7); font-size: 15px; }
.hero-title-tamil { font-family: 'Noto Sans Tamil',sans-serif; color: rgba(255,255,255,0.6); font-size: 1rem; display: block; margin-top: 4px; }
.category-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.cat-pill { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-muted); border: 1.5px solid var(--border); transition: all 0.18s; background: white; }
.cat-pill:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ═══════════ IMAGE GRID (old) ═══════════ */
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.image-card { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-gray); border: 1.5px solid var(--border); transition: all 0.22s; cursor: pointer; display: block; }
.image-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.image-card-thumb { aspect-ratio: 1/1; background: #f0ece6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Crect width='10' height='10' fill='%23e8e8e8'/%3E%3Crect x='10' y='10' width='10' height='10' fill='%23e8e8e8'/%3E%3Crect x='10' width='10' height='10' fill='%23f5f5f5'/%3E%3Crect y='10' width='10' height='10' fill='%23f5f5f5'/%3E%3C/svg%3E"); overflow: hidden; }
.image-card-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform 0.3s; }
.image-card:hover .image-card-thumb img { transform: scale(1.06); }
.image-card-info { padding: 10px 12px 12px; }
.image-card-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.image-card-meta { display: flex; align-items: center; justify-content: space-between; }
.image-card-dl { font-size: 11px; color: var(--text-light); }
.badge-premium { position: absolute; top: 8px; right: 8px; background: var(--premium); color: white; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.badge-new { position: absolute; top: 8px; left: 8px; background: var(--success); color: white; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* ═══════════ IMAGE DETAIL ═══════════ */
.image-detail { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 40px 0; }
.image-preview-wrap { background: var(--bg-gray); border-radius: var(--radius-lg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; min-height: 400px; padding: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Crect width='10' height='10' fill='%23e5e7eb'/%3E%3Crect x='10' y='10' width='10' height='10' fill='%23e5e7eb'/%3E%3Crect x='10' width='10' height='10' fill='%23f3f4f6'/%3E%3Crect y='10' width='10' height='10' fill='%23f3f4f6'/%3E%3C/svg%3E"); }
.image-preview-wrap img { max-width: 100%; max-height: 500px; object-fit: contain; }
.image-info-panel { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.info-card h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 10px; }
.image-main-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.image-tamil-title { font-family: 'Noto Sans Tamil', sans-serif; color: var(--text-muted); font-size: 1rem; margin-bottom: 12px; }
.image-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--bg-gray); padding: 4px 12px; border-radius: 999px; font-size: 12px; color: var(--text-muted); text-decoration: none; border: 1px solid var(--border); }
.tag:hover { background: var(--primary); color: white; border-color: var(--primary); }
.image-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec-item { background: var(--bg-gray); border-radius: 8px; padding: 10px; }
.spec-label { font-size: 11px; color: var(--text-light); display: block; margin-bottom: 2px; }
.spec-value { font-size: 14px; font-weight: 600; color: var(--text); }
.download-section { background: var(--navy); border-radius: var(--radius); padding: 20px; color: white; text-align: center; }
.download-section h3 { font-size: 1.1rem; margin-bottom: 8px; }
.download-section p { font-size: 13px; opacity: 0.7; margin-bottom: 16px; }
.download-limit-bar { background: rgba(255,255,255,0.15); border-radius: 999px; height: 6px; margin-bottom: 12px; }
.download-limit-fill { background: var(--accent); border-radius: 999px; height: 100%; transition: width 0.5s ease; }

/* ═══════════ AUTH ═══════════ */
.auth-wrap { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg-soft); }
.auth-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 40px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

/* ═══════════ FORMS ═══════════ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 15px; font-family: var(--font-main); transition: all 0.2s; outline: none; color: var(--text); background: white; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,92,0,0.12); }
.form-control.error { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: 12px; margin-top: 4px; display: block; }
.form-hint  { color: var(--text-muted); font-size: 12px; margin-top: 4px; display: block; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; }

/* ═══════════ BREADCRUMB ═══════════ */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); padding: 12px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border-dark); }

/* ═══════════ PAGINATION ═══════════ */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 32px 0; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1.5px solid var(--border); color: var(--text); transition: all 0.2s; }
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ═══════════ SEARCH ═══════════ */
.search-bar-wrap { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 20px 0; }
.search-big { display: flex; max-width: 600px; gap: 0; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.search-big input { flex: 1; padding: 14px 18px; border: 1.5px solid var(--border); border-right: none; outline: none; font-size: 15px; font-family: var(--font-main); border-radius: 10px 0 0 10px; }
.search-big input:focus { border-color: var(--primary); }
.search-big button { background: var(--primary); color: white; border: none; padding: 14px 24px; font-size: 15px; cursor: pointer; font-weight: 600; border-radius: 0 10px 10px 0; font-family: var(--font-main); }

/* ═══════════ EMPTY STATE ═══════════ */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 3rem; display: block; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); }

/* ═══════════ ADMIN ═══════════ */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy); color: white; }
.admin-sidebar-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-nav a { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.75); text-decoration: none; padding: 12px 20px; font-size: 14px; transition: all 0.2s; border-left: 3px solid transparent; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.08); color: white; border-left-color: var(--primary); }
.admin-nav .nav-section { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); padding: 16px 20px 6px; }
.admin-main { background: var(--bg-soft); padding: 32px; overflow-x: auto; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-title { font-size: 1.4rem; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; }
.stat-card-icon { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.stat-card-num { font-size: 1.8rem; font-weight: 700; color: var(--text); display: block; line-height: 1; }
.stat-card-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; display: block; }
.admin-table-wrap { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin-bottom: 24px; }
.admin-table-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.admin-table-wrap table { width: 100%; border-collapse: collapse; }
.admin-table-wrap th { background: var(--bg-soft); padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); }
.admin-table-wrap td { padding: 12px 14px; border-bottom: 1px solid var(--bg-gray); font-size: 14px; vertical-align: middle; }
.admin-table-wrap tr:last-child td { border-bottom: none; }
.admin-table-wrap tr:hover td { background: var(--bg-soft); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-purple  { background: var(--premium-light); color: var(--premium); }
.upload-dropzone { border: 2.5px dashed var(--border-dark); border-radius: 16px; padding: 48px 24px; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--bg-soft); }
.upload-dropzone:hover, .upload-dropzone.drag-over { border-color: var(--primary); background: #fff5f0; }
.upload-dropzone-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.upload-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 16px; }
.upload-preview-item img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: var(--bg-gray); }

/* ═══════════ FOOTER ═══════════ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 48px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand p { font-size: 13px; line-height: 1.8; margin-top: 12px; color: rgba(255,255,255,0.5); }
.footer-col h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); font-size: 13px; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.4); }

/* ═══════════ PREMIUM PAGE ═══════════ */
.premium-hero { background: linear-gradient(135deg, var(--premium), #4c1d95); color: white; padding: 60px 20px; text-align: center; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding: 40px 0; max-width: 900px; margin: 0 auto; }
.plan-card { background: white; border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; transition: all 0.2s; }
.plan-card.popular { border-color: var(--premium); }
.plan-popular-badge { background: var(--premium); color: white; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; display: inline-block; margin-bottom: 16px; }
.plan-price { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.plan-features { list-style: none; margin: 20px 0; text-align: left; }
.plan-features li { padding: 6px 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.plan-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.profile-wrap { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.profile-header { background: var(--navy); border-radius: var(--radius-lg); padding: 32px; color: white; margin-bottom: 24px; display: flex; align-items: center; gap: 20px; }
.profile-avatar-big { width: 72px; height: 72px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: white; flex-shrink: 0; }

/* ═══════════ MOBILE ═══════════ */
@media (max-width: 768px) {
    .hero-v2 { padding: 32px 0; }
    .hero-v2 h1 { font-size: 1.6rem; }
    .hero-search-v2 { border-radius: 12px; }
    .hero-search-v2 button { padding: 0 16px; font-size: 13px; }
    .hero-v2-stats { gap: 16px; padding: 14px 16px; }
    .hsv-divider { display: none; }
    .cat-bar { top: 50px; }
    .image-grid-v2 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .cat-grid-v2 { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
    .rcb-inner { flex-direction: column; text-align: center; }
    .how-steps { flex-direction: column; align-items: center; }
    .how-arrow { transform: rotate(90deg); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .image-detail { grid-template-columns: 1fr; }
    .nav-links .btn-premium { display: none; }
    .admin-layout { grid-template-columns: 1fr; }
    .section-head-v2 { flex-direction: column; align-items: flex-start; }
    .mobile-menu-btn { display: block; }
    .nav-links { display: none; }
}
@media (max-width: 480px) {
    .image-grid-v2 { grid-template-columns: repeat(2, 1fr); }
    .cat-grid-v2 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-v2-stats { flex-direction: row; gap: 12px; }
}

/* ═══════════ SEARCH LAYOUT WITH AD SIDEBARS ═══════════ */
.search-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 24px;
    align-items: start;
}
.search-sidebar-left,
.search-sidebar-right {
    position: sticky;
    top: 110px;
}
@media (max-width: 1200px) {
    .search-layout { grid-template-columns: 1fr; }
    .search-sidebar-left, .search-sidebar-right { display: none; }
}
@media (min-width: 900px) and (max-width: 1200px) {
    .search-layout { grid-template-columns: 250px 1fr; }
    .search-sidebar-right { display: none; }
    .search-sidebar-left { display: block; }
}

/* ═══════════ IMAGE DETAIL WITH AD SIDEBARS ═══════════ */
.detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 24px;
    align-items: start;
    padding: 28px 0;
}
.detail-sidebar {
    position: sticky;
    top: 110px;
}
@media (max-width: 1100px) {
    .detail-layout { grid-template-columns: 1fr 300px; }
    .detail-sidebar-left { display: none; }
}
@media (max-width: 768px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar, .detail-sidebar-left { display: none; }
}

/* ═══════════ AD WRAP SPACING ═══════════ */
.ad-wrap { margin: 4px 0; }
.ad-wrap ins, .ad-wrap div { max-width: 100%; }
