/* ============================================
   StopScams - Contemporary Design System
   ============================================ */

/* Fonts loaded via <link> in header.php for better performance */

/* ---- CSS Variables ---- */
:root {
    --bg-primary: #f5f6f8;
    --bg-secondary: #ebedf0;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f6f8;
    --bg-input: #eef0f3;
    --border: #d1d5db;
    --border-focus: #10b981;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.25);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.08);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.08);
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.08);
    --safe-gradient: linear-gradient(135deg, #10b981, #059669);
    --danger-gradient: linear-gradient(135deg, #ef4444, #dc2626);
    --warning-gradient: linear-gradient(135deg, #f59e0b, #d97706);
    --accent-gradient: linear-gradient(135deg, #10b981, #059669);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.08);
    --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --max-w: 1200px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 600px;
    background: radial-gradient(ellipse at 50% 0%, rgba(16,185,129,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #059669; }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---- Header ---- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

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

.nav a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.nav a:hover { color: var(--text-primary); background: var(--bg-card); }
.nav a.active { color: var(--text-primary); background: var(--bg-card); }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.lang-switch a {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text-muted);
}

.lang-switch a:hover { color: var(--text-secondary); }
.lang-switch a.active { color: var(--accent); background: rgba(16,185,129,0.1); }

/* Mobile menu */
.menu-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ---- Hero ---- */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ---- Search Box ---- */
.search-box {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.search-box input {
    width: 100%;
    padding: 18px 160px 18px 24px;
    font-family: var(--font-mono);
    font-size: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition);
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

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

.search-box button {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    padding: 0 32px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 12px var(--accent-glow);
}

.search-box button:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }

.search-hint {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Stats Bar ---- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 40px 0;
    margin-top: 20px;
}

.stat { text-align: center; }
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-top: 2px; }

/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(16,185,129,0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.card-link { display: block; color: inherit; }

/* ---- Entity Card (in search results) ---- */
.entity-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    margin-bottom: 12px;
}

.entity-type-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.entity-type-badge.website { background: rgba(16,185,129,0.12); }
.entity-type-badge.ip { background: rgba(168,85,247,0.15); }
.entity-type-badge.email { background: rgba(236,72,153,0.15); }
.entity-type-badge.phone { background: rgba(14,165,233,0.15); }

.entity-info { flex: 1; min-width: 0; }
.entity-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}
.entity-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.entity-score {
    flex-shrink: 0;
    text-align: center;
}

/* ---- Trust Score Badge ---- */
.trust-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    border-radius: 12px;
    min-width: 72px;
}

.trust-badge .score-num {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.trust-badge .score-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.trust-safe { background: var(--success-bg); color: var(--success); }
.trust-caution { background: var(--warning-bg); color: var(--warning); }
.trust-unknown { background: rgba(107,114,128,0.15); color: #9ca3af; }
.trust-suspicious { background: rgba(249,115,22,0.15); color: #f97316; }
.trust-danger { background: var(--danger-bg); color: var(--danger); }

/* ---- Entity Detail Page ---- */
.entity-header {
    padding: 48px 0 32px;
}

.entity-header-inner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.entity-icon-lg {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.entity-title {
    font-family: var(--font-mono);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    word-break: break-all;
    margin-bottom: 8px;
}

.entity-type-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Score Ring */
.score-ring-container {
    flex-shrink: 0;
    margin-left: auto;
    text-align: center;
}

.score-ring {
    width: 120px;
    height: 120px;
    position: relative;
}

.score-ring svg { transform: rotate(-90deg); }
.score-ring .ring-bg { fill: none; stroke: var(--border); stroke-width: 8; }
.score-ring .ring-value { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.score-ring .ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 800;
}

.score-ring-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.verified-badge.verified-scam {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.verified-badge.verified-safe {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Meta stats */
.entity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.entity-stat-card {
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.entity-stat-card .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.entity-stat-card .value { font-size: 1.25rem; font-weight: 700; margin-top: 4px; }

/* ---- Report Form ---- */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 32px;
}

.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 0.95rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea { min-height: 100px; resize: vertical; }
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239090a8' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-select option { background: var(--bg-secondary); }

/* Radio cards */
.radio-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.radio-card {
    position: relative;
    cursor: pointer;
}
.radio-card input { position: absolute; opacity: 0; }
.radio-card .card-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}
.radio-card input:checked + .card-inner {
    border-color: var(--accent);
    background: rgba(16,185,129,0.1);
    color: var(--accent);
}
.radio-card .card-inner:hover { border-color: var(--text-muted); }

/* Severity slider */
.severity-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--success), var(--warning), var(--danger));
    outline: none;
    margin: 10px 0;
}
.severity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--border);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.severity-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }

.btn-danger {
    background: var(--danger-gradient);
    color: #fff;
}

.btn-success {
    background: var(--safe-gradient);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--text-muted); color: var(--text-primary); }

/* ---- Rating Stars ---- */
.star-rating { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--border);
    transition: color var(--transition);
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f59e0b;
}

/* ---- Comments ---- */
.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.comment-author { font-weight: 600; font-size: 0.9rem; }
.comment-date { font-size: 0.75rem; color: var(--text-muted); }
.comment-stars { display: flex; gap: 2px; font-size: 0.8rem; }
.comment-stars .filled { color: #f59e0b; }
.comment-stars .empty { color: var(--border); }
.comment-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ---- Alert Messages ---- */
.alert {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }

/* ---- Recent Reports Grid ---- */
.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 32px 0;
}
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.pg-btn:hover { border-color: var(--accent); color: var(--accent); }
.pg-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pg-dots { display: flex; align-items: center; color: var(--text-muted); padding: 0 4px; }

/* ---- Footer ---- */
.footer {
    margin-top: 80px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer p { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; }
.footer-links a { font-size: 0.8rem; color: var(--text-secondary); }

/* ---- Two Column Layout ---- */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 32px; }
.two-col .main-col { min-width: 0; }
.two-col .side-col { position: sticky; top: 80px; align-self: start; }

/* ---- Page Header ---- */
.page-header { padding: 40px 0 24px; }
.page-header h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.page-header .subtitle { color: var(--text-secondary); margin-top: 4px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    /* Header */
    .header { padding: 0 16px; }
    .header-inner { height: 56px; }
    .header-inner form { display: none !important; }
    .nav { display: none; }
    .menu-toggle { display: block; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0; right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        gap: 4px;
        z-index: 100;
    }
    .nav.open a { padding: 12px 16px; font-size: 0.95rem; }
    .lang-switch { margin-left: 0; padding-left: 0; border-left: none; padding-top: 12px; border-top: 1px solid var(--border); }
    .logo-img { height: 32px !important; }

    /* Container */
    .container { padding: 0 16px; }

    /* Hero */
    .hero { padding: 32px 0 24px; }
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 0.95rem; margin-bottom: 24px; }
    .search-box input { padding: 14px 16px; font-size: 0.9rem; }
    .search-box button { position: static; width: 100%; margin-top: 8px; padding: 14px; border-radius: 14px; }
    .search-hint { font-size: 0.75rem; }

    /* Stats bar */
    .stats-bar { gap: 16px; padding: 24px 0; margin-top: 8px; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.7rem; }

    /* Entity header */
    .entity-header { padding: 24px 0 16px; }
    .entity-header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .entity-icon-lg { width: 56px; height: 56px; font-size: 1.5rem; border-radius: 14px; }
    .entity-title { font-size: 1.1rem; }
    .entity-type-label { font-size: 0.7rem; }
    .verified-badge { font-size: 0.75rem; padding: 5px 12px; }
    .score-ring-container { margin: 8px auto 0; }
    .score-ring { width: 100px; height: 100px; }
    .score-ring svg { width: 100px; height: 100px; }
    .score-ring .ring-text { font-size: 1.6rem; }
    .score-ring-label { font-size: 0.75rem; }

    /* Entity stats */
    .entity-stats { grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
    .entity-stat-card { padding: 12px 14px; }
    .entity-stat-card .label { font-size: 0.65rem; }
    .entity-stat-card .value { font-size: 1rem; margin-top: 2px; }

    /* Two column → single column */
    .two-col { grid-template-columns: 1fr; gap: 20px; }
    .two-col .side-col { position: static; }

    /* Forms */
    .form-section { padding: 20px; margin-bottom: 20px; border-radius: 14px; }
    .section-title { font-size: 1.1rem; gap: 8px; }
    .form-input, .form-select, .form-textarea { padding: 10px 14px; font-size: 0.9rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }

    /* Radio cards */
    .radio-cards { grid-template-columns: 1fr; gap: 6px; }
    .radio-card .card-inner { padding: 10px 12px; font-size: 0.8rem; }

    /* Entity cards (search results, recent, home) */
    .entity-card { padding: 14px 16px; gap: 12px; }
    .entity-type-badge { width: 40px; height: 40px; border-radius: 10px; font-size: 1.1rem; }
    .entity-value { font-size: 0.85rem; }
    .entity-meta { font-size: 0.72rem; }
    .trust-badge { padding: 6px 10px; min-width: 56px; border-radius: 10px; }
    .trust-badge .score-num { font-size: 1.15rem; }
    .trust-badge .score-label { font-size: 0.55rem; }

    /* Recent grid */
    .recent-grid { grid-template-columns: 1fr; gap: 10px; margin: 16px 0; }

    /* Page header */
    .page-header { padding: 24px 0 16px; }
    .page-header h1 { font-size: 1.35rem; }

    /* Search bar on non-home pages */
    .search-box[style*="margin-bottom"] input { padding: 12px 16px; font-size: 0.85rem; }

    /* Comments */
    .comment-head { gap: 8px; flex-wrap: wrap; }
    .comment-avatar { width: 32px; height: 32px; font-size: 0.7rem; }
    .comment-author { font-size: 0.85rem; }
    .comment-text { font-size: 0.85rem; }
    .comment-stars { font-size: 0.7rem; }

    /* Pagination */
    .pagination { gap: 4px; padding: 24px 0; }
    .pg-btn { width: 36px; height: 36px; font-size: 0.8rem; }

    /* Footer */
    .footer { margin-top: 40px; padding: 24px 0; }
    .footer-links { gap: 16px; }

    /* Alerts */
    .alert { font-size: 0.8rem; padding: 10px 14px; }

    /* Star rating */
    .star-rating label { font-size: 1.3rem; }
}

/* ---- Animations ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ---- Skeleton Loading ---- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Admin Styles ---- */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
}

.admin-sidebar .logo { margin-bottom: 32px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all var(--transition);
}
.admin-nav a:hover, .admin-nav a.active { background: var(--bg-card); color: var(--text-primary); }

.admin-main { padding: 24px 32px; }
.admin-header { margin-bottom: 24px; }
.admin-header h1 { font-size: 1.5rem; font-weight: 800; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.admin-stat-card .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.admin-stat-card .value { font-size: 1.75rem; font-weight: 800; margin-top: 4px; }

.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 14px 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
}
.data-table tr:hover td { background: var(--bg-card); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-approved { background: var(--success-bg); color: var(--success); }
.badge-rejected { background: var(--danger-bg); color: var(--danger); }

.admin-actions { display: flex; gap: 6px; }
.admin-actions .btn { padding: 6px 14px; font-size: 0.8rem; border-radius: 8px; }

.lang-dropdown { display: none; }
.lang-dropdown.open { display: block !important; }
