/* Elegance Coins - simple modern UI */

:root {
    --bg: #faf5ef;
    --bg-soft: #fdf7f0;
    --primary: #c79a3b;
    --primary-dark: #a87f24;
    --text: #2c2c30;
    --muted: #777;
    --border: #e4d7c5;
    --radius-lg: 14px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #FFFFFF;
    min-height: 100vh;
    color: var(--text);
    position: relative;
}

.site-main {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid #DC143C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFD700;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav a {
    margin-left: 18px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #DC143C;
    transition: width 0.18s ease;
}

.nav a:hover::after {
    width: 100%;
}

.btn-primary {
    padding: 8px 18px;
    border-radius: 999px;
    border: 2px solid #DC143C;
    background: #FFD700;
    color: #DC143C !important;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.35);
}

.site-main {
    padding: 32px 0 48px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
    gap: 32px;
    align-items: center;
}

.hero-card {
    background: #FFFFFF;
    border-radius: 26px;
    padding: 24px 26px;
    box-shadow: var(--shadow-soft);
    border: 2px solid #FFD700;
    position: relative;
    overflow: hidden;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(199, 154, 59, 0.3);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 32px;
    line-height: 1.1;
    margin: 0 0 10px;
}

.hero h1 span {
    color: var(--primary-dark);
}

.hero-sub {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.metric {
    flex: 1 1 120px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(244, 220, 182, 0.85);
}

.metric-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.link-muted {
    font-size: 13px;
    color: var(--muted);
}

.hero-side {
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.glass-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.mini-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.mini-list li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff7df;
    color: var(--primary-dark);
}

.section {
    margin-top: 40px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 14px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    font-size: 13px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th,
.table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0e3d1;
}

.table th {
    text-align: left;
    background: #faf1df;
    font-weight: 600;
}

.pill {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f7efe1;
    font-size: 11px;
}

.auth-card {
    max-width: 420px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 22px 22px 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.auth-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e0d3c0;
    font-size: 13px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.btn-gold {
    background: #FFD700;
    color: #DC143C;
    font-weight: 600;
    border: 2px solid #DC143C;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.35);
}

.text-center {
    text-align: center;
}

.text-center.text-muted {
    text-align: center;
    color: var(--muted);
}

.text-muted {
    color: var(--muted);
}

.alert {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

.alert-error {
    background: #ffe4e4;
    color: #8b1a1a;
}

.site-footer {
    padding: 16px 0 22px;
    font-size: 12px;
    color: var(--muted);
}

.admin-nav {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.admin-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    color: var(--text);
    background: #f7efe1;
    transition: all 0.2s;
}

.admin-nav a:hover {
    background: #f2e4d0;
    transform: translateY(-1px);
}

.admin-nav a.active {
    background: #DC143C;
    color: #FFFFFF;
    font-weight: 600;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stats .stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.admin-stats .stat-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.admin-stats .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-success {
    background: #10b981;
    color: #fff;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-warning {
    background: #f59e0b;
    color: #fff;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-active, .status-credited, .status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-blocked, .status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .nav a {
        margin-left: 10px;
    }

    .site-main {
        padding-top: 20px;
    }

    .admin-nav {
        flex-direction: column;
    }

    .admin-nav a {
        text-align: center;
    }
}

