@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

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

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    --accent: #f43f5e;
    --accent-hover: #e11d48;
    --accent-glow: rgba(244, 63, 94, 0.3);
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    --bg: #f8fafc;
    --bg-secondary: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(255, 255, 255, 0.5);
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(244, 63, 94, 0.15);
    --gold: linear-gradient(135deg, #fbbf24, #f59e0b);
    --silver: linear-gradient(135deg, #d1d5db, #9ca3af);
    --bronze: linear-gradient(135deg, #d97706, #b45309);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--primary-gradient);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.1) 0%, transparent 50%);
    animation: headerPulse 8s ease-in-out infinite;
}

@keyframes headerPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logos img {
    height: 55px;
    width: auto;
    background: white;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-logos img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.header-text {
    text-align: center;
}

.header-text h1 {
    font-size: 2.2em;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-text .subtitle {
    font-size: 1em;
    opacity: 0.85;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.header-text .campaign-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.8em;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-text .campaign-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.month-label {
    display: block;
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 10px 24px;
    font-size: 0.95em;
    font-weight: 500;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Navigation */
.nav {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 16px 24px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.nav a:hover {
    color: var(--accent);
    background: rgba(244, 63, 94, 0.03);
}

.nav a:hover::after,
.nav a.active::after {
    width: 40px;
}

.nav a.active {
    color: var(--accent);
    font-weight: 600;
}

/* Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin: 20px 0;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card h2 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
}

/* Podium */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 40px 0 30px;
    padding: 40px 20px 30px;
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.03) 0%, transparent 100%);
    border-radius: var(--radius-xl);
    position: relative;
}

.podium-item {
    text-align: center;
    flex: 0 0 200px;
    transition: transform 0.3s ease;
}

.podium-item:hover {
    transform: translateY(-5px);
}

.podium-item.first { order: 0; }
.podium-item.second { order: -1; }
.podium-item.third { order: 1; }

.podium-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.podium-item.first .podium-avatar {
    background: var(--gold);
    width: 100px;
    height: 100px;
    font-size: 2.2em;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

.podium-item.second .podium-avatar {
    background: var(--silver);
    box-shadow: 0 8px 25px rgba(156, 163, 175, 0.4);
}

.podium-item.third .podium-avatar {
    background: var(--bronze);
    box-shadow: 0 8px 25px rgba(180, 83, 9, 0.4);
}

.podium-name {
    font-weight: 700;
    font-size: 1em;
    margin: 8px 0 4px;
    color: var(--text);
}

.podium-place {
    color: var(--text-muted);
    font-size: 0.85em;
}

.podium-steps {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--accent);
    margin: 10px 0 4px;
}

.podium-avg {
    color: var(--text-muted);
    font-size: 0.8em;
}

.podium-prize {
    background: var(--gold);
    color: #000;
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85em;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.podium-base {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.podium-base .base-block {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.3em;
    letter-spacing: 1px;
}

.podium-base .base-block.first-base {
    width: 200px;
    height: 60px;
    background: var(--gold);
    box-shadow: 0 -4px 20px rgba(251, 191, 36, 0.3);
}

.podium-base .base-block.second-base {
    width: 200px;
    height: 45px;
    background: var(--silver);
}

.podium-base .base-block.third-base {
    width: 200px;
    height: 35px;
    background: var(--bronze);
}

/* Rankings Table */
.rankings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
}

.rankings-table th {
    background: var(--primary);
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rankings-table th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.rankings-table th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.rankings-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

.rankings-table tr:hover td {
    background: rgba(244, 63, 94, 0.02);
}

.rankings-table tr:last-child td {
    border-bottom: none;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    color: white;
    font-size: 0.9em;
}

.rank-badge.rank-1 {
    background: var(--gold);
    color: #000;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.rank-badge.rank-2 {
    background: var(--silver);
    color: #000;
}

.rank-badge.rank-3 {
    background: var(--bronze);
}

.rank-badge.rank-other {
    background: var(--text-muted);
}

.step-count {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.05em;
}

.avg-steps {
    color: var(--text-muted);
    font-size: 0.9em;
}

.prize-tag {
    background: var(--success-bg);
    color: var(--success);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85em;
}

.verified {
    color: var(--success);
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: white;
}

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

.form-group input[type="file"] {
    padding: 12px;
    border: 2px dashed var(--border);
    background: white;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: var(--accent);
}

.form-group .checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-group .checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-top: 6px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(244, 63, 94, 0.03);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85em;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 15px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--success-bg);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: var(--danger-bg);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: var(--warning-bg);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: var(--info-bg);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Registration Success */
.success-box {
    text-align: center;
    padding: 50px 30px;
}

.success-box .check-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8em;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-box h2 {
    color: var(--success);
    font-size: 1.6em;
    margin-bottom: 15px;
}

.success-box .participation-id {
    font-size: 2em;
    font-weight: 800;
    color: var(--accent);
    background: rgba(244, 63, 94, 0.08);
    display: inline-block;
    padding: 12px 35px;
    border-radius: var(--radius-lg);
    margin: 15px 0;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 2px;
}

/* Footer */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 25px;
    margin-top: 60px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3em;
    font-weight: 700;
    color: white;
}

.footer p {
    line-height: 1.7;
    font-size: 0.9em;
}

.footer h4 {
    color: white;
    font-size: 1em;
    margin-bottom: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer ul a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.85em;
    opacity: 0.7;
}

/* Admin */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--primary);
    color: white;
    padding: 25px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .sidebar-header {
    padding: 20px 25px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

.admin-sidebar .sidebar-header h3 {
    font-size: 1.2em;
    font-family: 'Outfit', sans-serif;
    margin-top: 10px;
}

.admin-sidebar .sidebar-header p {
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 4px;
}

.admin-sidebar a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 12px 25px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.95em;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255,255,255,0.08);
    color: white;
    border-left-color: var(--accent);
}

.admin-content {
    margin-left: 260px;
    padding: 35px;
    flex: 1;
    min-height: 100vh;
    background: var(--bg);
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-topbar h2 {
    font-size: 1.6em;
    font-family: 'Outfit', sans-serif;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-number {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-top: 8px;
    font-weight: 500;
}

/* Campaign Banner */
.campaign-banner {
    background: var(--primary-gradient);
    color: white;
    padding: 18px 0;
    text-align: center;
}

.campaign-banner img {
    height: 35px;
    vertical-align: middle;
}

.campaign-banner span {
    margin: 0 18px;
    font-size: 0.9em;
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
        padding: 25px 15px;
    }

    .header-logos {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-logos img {
        height: 45px;
        padding: 6px 10px;
    }

    .header-text h1 {
        font-size: 1.5em;
    }

    .header-text .subtitle {
        font-size: 0.9em;
    }

    .header-text .campaign-tag {
        font-size: 0.75em;
        padding: 5px 14px;
    }

    .podium {
        flex-direction: column;
        align-items: center;
        padding: 25px 15px;
        gap: 25px;
    }

    .podium-item.first,
    .podium-item.second,
    .podium-item.third {
        order: unset;
    }

    .podium-item {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
    }

    .podium-base {
        flex-direction: column;
        align-items: center;
    }

    .podium-base .base-block {
        width: 100% !important;
        max-width: 280px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-content {
        margin-left: 0;
        padding: 20px 15px;
    }

    .rankings-table {
        font-size: 0.8em;
        display: block;
    }

    .rankings-table thead {
        display: none;
    }

    .rankings-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 15px;
        border-bottom: 1px solid var(--border);
        gap: 8px;
        background: white;
        margin-bottom: 10px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }

    .rankings-table tbody td {
        padding: 4px 8px;
        border: none;
    }

    .rankings-table tbody td:nth-child(1) {
        display: none;
    }

    .rankings-table tbody td:nth-child(2) {
        display: none;
    }

    .rankings-table tbody td:nth-child(3) {
        font-weight: 700;
        width: 100%;
        font-size: 1.15em;
    }

    .rankings-table tbody td:nth-child(4),
    .rankings-table tbody td:nth-child(5) {
        font-size: 0.9em;
        color: var(--text-secondary);
    }

    .rankings-table tbody td:last-child {
        width: 100%;
        margin-top: 8px;
    }

    .nav {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav a {
        padding: 14px 18px;
        font-size: 0.9em;
    }

    .card {
        padding: 22px 18px;
        margin: 15px 10px;
        border-radius: var(--radius-lg);
    }

    .card h2 {
        font-size: 1.2em;
    }

    .container {
        padding: 0 12px;
    }

    .btn {
        padding: 11px 20px;
        font-size: 0.9em;
    }

    .btn-sm {
        padding: 7px 14px;
        font-size: 0.8em;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-logos img {
        height: 38px;
        padding: 5px 8px;
    }

    .header-text h1 {
        font-size: 1.25em;
    }

    .nav a {
        padding: 12px 12px;
        font-size: 0.85em;
    }

    .podium-avatar {
        width: 65px;
        height: 65px;
        font-size: 1.5em;
    }

    .podium-item.first .podium-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.9em;
    }

    .podium-name {
        font-size: 0.9em;
    }

    .podium-steps {
        font-size: 1.1em;
    }

    .stat-card .stat-number {
        font-size: 1.8em;
    }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* WhatsApp Floating Button */
.wa-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.wa-float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.wa-float-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.wa-float-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* WhatsApp Modal */
.wa-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.wa-modal-overlay.active {
    display: flex;
}

.wa-modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: waSlideUp 0.3s ease;
}

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

.wa-modal-header {
    background: #25D366;
    color: white;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.wa-modal-header svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.wa-modal-header h3 {
    font-size: 1.15em;
    font-weight: 700;
}

.wa-modal-header p {
    font-size: 0.85em;
    opacity: 0.9;
}

.wa-modal-body {
    padding: 28px;
}

.wa-modal-body .form-group {
    margin-bottom: 18px;
}

.wa-modal-body .form-group label {
    font-size: 0.9em;
    margin-bottom: 6px;
}

.wa-modal-body .form-group input {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    width: 100%;
    font-size: 1em;
}

.wa-modal-footer {
    padding: 0 28px 28px;
    display: flex;
    gap: 12px;
}

.wa-modal-footer .btn-send {
    flex: 1;
    background: #25D366;
    color: white;
    border: none;
    padding: 13px;
    border-radius: var(--radius-md);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.wa-modal-footer .btn-send:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.wa-modal-footer .btn-cancel {
    background: var(--bg-secondary);
    color: var(--text);
    border: none;
    padding: 13px 22px;
    border-radius: var(--radius-md);
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wa-modal-footer .btn-cancel:hover {
    background: var(--border);
}

.wa-hint {
    font-size: 0.8em;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}
