/* ========== Base ========== */
:root {
    --bg: #f4f7fc;
    --surface: #ffffff;
    --text: #222;
    --muted: #6b7280;
    --primary: #2c3e50;
    --accent: #3498db;
    --accent-600: #2980b9;
    --danger: #e74c3c;
    --danger-600: #c0392b;
    --ring: rgba(52, 152, 219, 0.25);
    --radius: 14px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html,
body {
    height: 100%;
}
body.front-body {
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto,
        sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.front-container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

/* ========== Navbar ========== */
.front-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.front-navbar .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}
.front-navbar .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.front-navbar .brand img {
    height: 40px;
    width: auto;
    display: block;
}
.front-navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}
.front-navbar .nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    opacity: 0.9;
}
.front-navbar .nav-links a:hover {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    padding: 12px 18px;
    font-weight: 700;
    border-radius: 10px;
    transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease,
        color 0.2s;
}
.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--danger);
    color: #fff;
}
.btn-primary:hover {
    background: var(--danger-600);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}
.btn-accent:hover {
    background: var(--accent-600);
}

.btn-text {
    background: transparent;
    color: var(--accent);
    padding: 0 4px;
}
.btn-text:hover {
    color: var(--accent-600);
}

/* ========== Hero ========== */
.front-hero {
    position: relative;
    background: linear-gradient(135deg, #101522 0%, #20334b 50%, #2c3e50 100%);
    color: #fff;
    isolation: isolate;
}
.front-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
            800px 300px at 20% 20%,
            rgba(255, 255, 255, 0.08),
            transparent 60%
        ),
        radial-gradient(
            600px 240px at 80% 60%,
            rgba(255, 255, 255, 0.06),
            transparent 60%
        );
    z-index: -1;
}
.hero-inner {
    min-height: 420px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 64px 0;
}
.hero-inner h1 {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: 0.2px;
    margin-bottom: 12px;
    font-weight: 700;
}
.hero-inner p {
    color: #dbeafe;
    font-size: clamp(14px, 2.2vw, 18px);
    margin-bottom: 22px;
}

/* ========== Section Head ========== */
.front-section {
    padding: 56px 0;
}
.section-head {
    text-align: center;
    margin-bottom: 28px;
}
.section-head h2 {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 6px;
}
.section-head p {
    color: var(--muted);
    font-size: 14px;
}

/* ========== Pricing Grid ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}
.card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.card .price {
    font-size: 22px;
    font-weight: 700;
    color: var(--danger);
    margin: 6px 0 14px;
}
.card .meta {
    font-size: 14px;
    margin-bottom: 8px;
}
.card .meta b {
    font-weight: 600;
}
.card .actions {
    margin-top: 12px;
}

/* ========== Skeleton Loader ========== */
.skeleton {
    position: relative;
    overflow: hidden;
}
.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.04),
        transparent
    );
    animation: shimmer 1.2s infinite;
}
.sk-title {
    height: 18px;
    width: 60%;
    background: #eee;
    border-radius: 8px;
    margin-bottom: 12px;
}
.sk-price {
    height: 22px;
    width: 40%;
    background: #eee;
    border-radius: 8px;
    margin-bottom: 16px;
}
.sk-line {
    height: 12px;
    background: #eee;
    border-radius: 8px;
    margin-bottom: 10px;
}
.sk-line.short {
    width: 70%;
}
.sk-btn {
    height: 40px;
    width: 100%;
    background: #eee;
    border-radius: 10px;
    margin-top: 6px;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ========== Empty & Error ========== */
.empty-state,
.error-state {
    text-align: center;
    color: var(--muted);
    margin-top: 12px;
}
.empty-state img {
    width: 48px;
    height: 48px;
    opacity: 0.85;
    margin-bottom: 8px;
}

/* ========== Footer ========== */
.front-footer {
    background: #233042;
    color: #cbd5e1;
    padding: 20px 0;
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.front-footer p {
    text-align: center;
    font-size: 14px;
}

/* ========== Utilities ========== */
.ring:focus {
    outline: none;
    box-shadow: 0 0 0 6px var(--ring);
    border-radius: 12px;
}
