/* ============================================
   CoinsNight - FC 27 Coins Store
   Style inspired by comparison listing sites
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    background: #f0f4f8;
    color: #1a202c;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo a {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.logo a span { color: #0ea5e9; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    transition: .2s;
}
.main-nav a:hover { color: #0f172a; background: #f1f5f9; }
.main-nav a.active { color: #0ea5e9; font-weight: 600; }
.btn-nav {
    background: #0ea5e9 !important;
    color: #fff !important;
    font-weight: 600 !important;
}
.btn-nav:hover { background: #0284c7 !important; }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #475569;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 10px 20px 20px;
    gap: 6px;
    border-top: 1px solid #e2e8f0;
}
.mobile-menu a {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 15px;
    color: #475569;
}
.mobile-menu a:hover { background: #f1f5f9; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
    color: #fff;
    text-align: center;
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(14,165,233,.15) 0%, transparent 60%);
    pointer-events: none;
}
.hero-badge {
    display: inline-block;
    background: rgba(14,165,233,.2);
    border: 1px solid rgba(14,165,233,.4);
    color: #7dd3fc;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: .5px;
}
.hero h1 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -1px;
    position: relative;
}
.hero h1 .highlight { color: #7dd3fc; }
.hero p {
    font-size: 18px;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}
.hero-btn {
    display: inline-block;
    background: #0ea5e9;
    color: #fff;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    transition: .2s;
    position: relative;
}
.hero-btn:hover { background: #0284c7; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(14,165,233,.4); }
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    position: relative;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 28px; font-weight: 800; color: #7dd3fc; }
.hero-stat .label { font-size: 13px; color: #64748b; }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 32px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.section-header p { font-size: 16px; color: #64748b; max-width: 600px; margin: 0 auto; }
.section-header .subtitle-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0ea5e9;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: .5px;
}

/* ---------- Packages (3 columns) ---------- */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.package-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 2px solid #e2e8f0;
    transition: .3s;
    position: relative;
}
.package-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.package-card.featured {
    border-color: #0ea5e9;
    box-shadow: 0 4px 20px rgba(14,165,233,.15);
}
.package-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #0ea5e9;
    color: #fff;
    padding: 4px 16px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
.pkg-icon { font-size: 42px; margin-bottom: 12px; }
.pkg-platform { font-size: 13px; color: #0ea5e9; font-weight: 700; letter-spacing: 1px; margin-bottom: 4px; }
.pkg-name { font-size: 22px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.pkg-desc { font-size: 13px; color: #64748b; margin-bottom: 20px; min-height: 40px; }
.pkg-price { margin-bottom: 20px; }
.pkg-price .amount { font-size: 42px; font-weight: 900; color: #0f172a; }
.pkg-price .amount .currency { font-size: 20px; vertical-align: super; color: #475569; }
.pkg-price .per { font-size: 13px; color: #94a3b8; }
.pkg-features { text-align: left; margin-bottom: 24px; }
.pkg-features li {
    padding: 6px 0;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pkg-features li::before { content: '✓'; color: #10b981; font-weight: 700; }
.pkg-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: .2s;
    text-align: center;
}
.pkg-btn.primary { background: #0ea5e9; color: #fff; }
.pkg-btn.primary:hover { background: #0284c7; }
.pkg-btn.outline { background: #fff; color: #0ea5e9; border: 2px solid #0ea5e9; }
.pkg-btn.outline:hover { background: #e0f2fe; }

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    border: 1px solid #e2e8f0;
    transition: .3s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature-card h4 { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: #64748b; }

/* ---------- How It Works ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.step-card {
    text-align: center;
    position: relative;
}
.step-num {
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 14px;
}
.step-card h4 { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: #64748b; }
.step-arrow { position: absolute; top: 12px; right: -10px; font-size: 24px; color: #cbd5e1; }

/* ---------- Reviews ---------- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    border: 1px solid #e2e8f0;
}
.review-stars { color: #f59e0b; font-size: 16px; margin-bottom: 10px; }
.review-card p { font-size: 14px; color: #475569; margin-bottom: 14px; font-style: italic; }
.review-author { font-size: 13px; font-weight: 700; color: #0f172a; }
.review-date { font-size: 12px; color: #94a3b8; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.faq-question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-question::after { content: '+'; font-size: 20px; color: #0ea5e9; font-weight: 700; }
.faq-question.active::after { content: '−'; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.faq-answer.open { max-height: 300px; }
.faq-answer p { padding: 0 20px 16px; font-size: 14px; color: #64748b; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}
.contact-item .icon { font-size: 24px; margin-bottom: 8px; }
.contact-item h4 { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.contact-item p { font-size: 13px; color: #64748b; }
.contact-form-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.contact-form-wrap h3 { font-size: 20px; font-weight: 700; color: #0f172a; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: .2s;
    background: #f8fafc;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,.15);
    background: #fff;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
    width: 100%;
    padding: 12px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}
.btn-submit:hover { background: #0284c7; }

/* ---------- Order Page ---------- */
.order-container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid #e2e8f0;
}
.order-container h1 { font-size: 28px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.order-container .order-subtitle { font-size: 14px; color: #64748b; margin-bottom: 30px; }
.order-summary {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}
.order-summary h3 { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.order-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: #475569; }
.order-row.total { font-weight: 700; color: #0f172a; font-size: 16px; border-top: 1px solid #e2e8f0; padding-top: 10px; margin-top: 6px; }
.payment-notice {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}
.payment-notice .icon { font-size: 32px; margin-bottom: 8px; }
.payment-notice h4 { font-size: 16px; font-weight: 700; color: #92400e; margin-bottom: 6px; }
.payment-notice p { font-size: 13px; color: #78350f; }
.support-contact {
    background: #e0f2fe;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}
.support-contact p { font-size: 14px; color: #0c4a6e; }
.support-contact a { color: #0ea5e9; font-weight: 600; }

/* ---------- Auth Pages ---------- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 40px 20px;
}
.auth-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.auth-box h1 { font-size: 26px; font-weight: 800; color: #0f172a; margin-bottom: 6px; text-align: center; }
.auth-box .auth-sub { font-size: 14px; color: #64748b; text-align: center; margin-bottom: 28px; }
.auth-box .form-group { margin-bottom: 18px; }
.auth-box label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.auth-box input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    transition: .2s;
    background: #f8fafc;
}
.auth-box input:focus { outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,.15); background: #fff; }
.auth-box .btn-auth {
    width: 100%;
    padding: 12px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
    margin-top: 6px;
}
.auth-box .btn-auth:hover { background: #0284c7; }
.auth-box .auth-link { text-align: center; margin-top: 18px; font-size: 13px; color: #64748b; }
.auth-box .auth-link a { color: #0ea5e9; font-weight: 600; }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }

/* ---------- Dashboard ---------- */
.dashboard-container { max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.dashboard-header { margin-bottom: 30px; }
.dashboard-header h1 { font-size: 28px; font-weight: 800; color: #0f172a; }
.dashboard-header p { font-size: 14px; color: #64748b; }
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.dash-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.dash-card h3 { font-size: 14px; color: #64748b; font-weight: 600; margin-bottom: 6px; }
.dash-card .value { font-size: 32px; font-weight: 800; color: #0f172a; }
.dash-card .value small { font-size: 14px; color: #94a3b8; }
.dash-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dash-quick a {
    display: block;
    padding: 14px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    transition: .2s;
}
.dash-quick a:hover { background: #e0f2fe; border-color: #0ea5e9; }

/* ---------- Orders ---------- */
.orders-table-wrap {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th {
    background: #f8fafc;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.orders-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}
.orders-table tr:hover { background: #f8fafc; }
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ---------- Footer ---------- */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 50px 0 20px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col a {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    padding: 3px 0;
    transition: .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}

/* ---------- Legal Pages ---------- */
.legal-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.legal-container h1 { font-size: 28px; font-weight: 800; color: #0f172a; margin-bottom: 20px; }
.legal-container h2 { font-size: 20px; font-weight: 700; color: #1e293b; margin: 24px 0 10px; }
.legal-container p { font-size: 14px; color: #475569; line-height: 1.8; margin-bottom: 10px; }
.legal-container ul { padding-left: 20px; margin-bottom: 10px; }
.legal-container li { font-size: 14px; color: #475569; line-height: 1.8; }

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: .3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: #10b981; color: #fff; }
.toast-error { background: #ef4444; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .packages-grid { grid-template-columns: 1fr; max-width: 400px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 32px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-menu.open { display: flex; }
}
@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .order-container { padding: 24px; }
    .auth-box { padding: 28px 20px; }
    .hero { padding: 60px 16px 50px; }
    .section { padding: 50px 0; }
}
