/* ═══════════════════════════════════════════════════════════
   IPTV Store — Custom Stylesheet
   Built on Bootstrap 5.3 · Dark theme · Electric blue accent
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
    --bg-base: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-elevated: #F1F5F9;
    --accent: #2D7EF8;
    --accent-dark: #1A5DC4;
    --accent-glow: rgba(45, 126, 248, 0.25);
    --success: #10B981;
    --success-glow: rgba(16, 185, 129, 0.2);
    --warning: #F59E0B;
    --danger: #EF4444;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-light: #CBD5E1;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --transition: all 0.22s ease;
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --bg-navbar: rgba(255, 255, 255, 0.92);
}

[data-bs-theme="dark"] {
    --bg-base: #080C14;
    --bg-surface: #0E1623;
    --bg-elevated: #162032;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #4B6280;
    --border: #1E2D45;
    --border-light: #253650;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --bg-navbar: rgba(8, 12, 20, 0.92);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

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

a:hover {
    color: #6AA8FF;
}

/* ── Bootstrap Overrides ──────────────────────────────────── */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius);
    padding: 0.55rem 1.35rem;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 4px 16px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
}

.btn-success:hover {
    background: #0d9668;
    border-color: #0d9668;
    box-shadow: 0 4px 16px var(--success-glow);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-outline-secondary {
    border-color: var(--border-light);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
}

.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.card-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-control,
.form-select {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 0.6rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-elevated);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.invalid-feedback {
    font-size: 0.8rem;
    color: var(--danger);
}

.is-invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.is-valid {
    border-color: var(--success) !important;
}

.form-check-input {
    background-color: var(--bg-elevated);
    border-color: var(--border-light);
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* ── Navbar ───────────────────────────────────────────────── */
.site-navbar {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    /* subtle shadow */
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

[data-bs-theme="dark"] .site-navbar {
    background: rgba(10, 15, 26, 0.65) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.site-navbar .navbar-brand {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary) !important;
    letter-spacing: -0.02em;
}

.site-navbar .navbar-brand span {
    color: var(--accent);
}

.site-navbar .nav-item {
    margin: 0 0.2rem;
}

.site-navbar .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.55rem 1.15rem !important;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Glass Indicator & Hover Background */
.site-navbar .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.6) translateY(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--accent) !important;
    transform: translateY(-3px);
    /* Huge bounce effect */
}

.site-navbar .nav-link:hover::before,
.site-navbar .nav-link.active::before {
    opacity: 0.12;
    transform: scale(1) translateY(0);
}

[data-bs-theme="dark"] .site-navbar .nav-link:hover::before,
[data-bs-theme="dark"] .site-navbar .nav-link.active::before {
    opacity: 0.25;
}

/* Bottom Active indicator line */
.site-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-toggler {
    border-color: var(--border-light);
    padding: 0.35rem 0.6rem;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Cart badge */
.cart-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-count {
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    font-family: var(--font-mono);
}

/* ── Premium Hero Overlay ─────────────────────────────────────────── */
.hero-full {
    min-height: 100vh;
    display: flex;
    position: relative;
    background: url('../images/logo.png') center right/cover no-repeat, #0a0514;
    overflow: hidden;
    margin-top: -72px;
    /* Offset the navbar height */
    padding-top: 72px;
    /* Inner padding */
}

/* Ensure the text has a readable dark background on the left */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-full::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Dark gradient overlay fading out to the right to let the grid show */
    background: linear-gradient(90deg, rgba(8, 4, 18, 0.95) 0%, rgba(8, 4, 18, 0.8) 40%, transparent 100%);
    z-index: 1;
}

.hero-text-content {
    max-width: 600px;
    padding: 2rem 0;
    color: #fff;
}

.hero-welcome {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #fff;
}

.hero-title-main {
    font-family: var(--font-head);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.15rem;
    color: #a0a6b5;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero-feature-list {
    list-style: none;
    padding: 0;
}

.hero-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #d1d5db;
}

.hero-feature-list li i {
    font-size: 1.25rem;
    /* Electric purple checkmark */
    color: #7b2cbf;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-hero {
    background: linear-gradient(135deg, #7b2cbf 0%, #4a00e0 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-primary-hero:hover {
    background: linear-gradient(135deg, #6c24a6 0%, #3a00b0 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 44, 191, 0.4);
}

.btn-outline-hero {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ── Section Labels ───────────────────────────────────────── */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 560px;
    line-height: 1.65;
}

/* ── Package Cards ────────────────────────────────────────── */
.package-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.package-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent);
}

.package-card.featured {
    border-color: var(--warning);
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.15);
}

.package-card.featured:hover {
    border-color: var(--warning);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.2);
}

.package-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-elevated);
}

.package-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.package-card:hover .package-img-wrapper img {
    transform: scale(1.05);
}

.package-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
    color: var(--text-muted);
    font-size: 2.5rem;
}

.badge-featured {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--warning);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-antifreeze {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--success);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.package-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.package-name {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.package-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.55;
    flex: 1;
}

.package-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.package-meta-tag {
    font-size: 0.72rem;
    font-weight: 500;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
}

.package-price {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--success);
}

.package-price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

/* ── Pricing Plan Cards (Detail Page) ─────────────────────── */
.plan-card {
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.plan-card:hover,
.plan-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 32px var(--accent-glow);
}

.plan-card.best-value {
    border-color: var(--success);
}

.plan-card.best-value::before {
    content: 'BEST VALUE';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.75rem;
    border-radius: 10px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.plan-duration {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.plan-price .currency {
    font-size: 1rem;
    vertical-align: top;
    margin-top: 0.3rem;
    display: inline-block;
}

.plan-old-price {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-top: 0.25rem;
}

.plan-savings {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ── Tables ───────────────────────────────────────────────── */
.table {
    color: var(--text-primary);
    border-color: var(--border);
    margin-bottom: 0;
}

.table> :not(caption)>*>* {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border);
    padding: 0.85rem 1rem;
}

.table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    border-bottom-width: 1px;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover td {
    background: var(--bg-elevated) !important;
}

/* ── Status Badges ────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-PENDING {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.status-CONTACTED {
    background: rgba(45, 126, 248, 0.15);
    color: #2D7EF8;
}

.status-PAID {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.status-ACTIVATED {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-CANCELLED {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* ── Cart ─────────────────────────────────────────────────── */
.cart-item-row {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.cart-item-row:hover {
    border-color: var(--border-light);
}

.cart-item-img {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.cart-item-plan {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.cart-item-price {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--success);
    white-space: nowrap;
}

/* ── Order Summary Sidebar ────────────────────────────────── */
.order-summary {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.order-summary-row.total {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── WhatsApp CTA ─────────────────────────────────────────── */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #25D366;
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    border: none;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-whatsapp:hover {
    background: #1ebc57;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp svg {
    flex-shrink: 0;
}

/* ── Order Success Page ───────────────────────────────────── */
.success-icon {
    width: 72px;
    height: 72px;
    background: var(--success-glow);
    border: 2px solid var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    animation: pulse-success 2s infinite;
}

@keyframes pulse-success {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--success-glow);
    }

    50% {
        box-shadow: 0 0 0 12px transparent;
    }
}

/* ── Admin Sidebar ────────────────────────────────────────── */
.admin-sidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.admin-brand {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    padding: 0.5rem 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.admin-brand span {
    color: var(--accent);
}

.admin-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem 0.3rem;
    margin-top: 0.5rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0.1rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.admin-nav-link.active {
    color: var(--accent);
    background: rgba(45, 126, 248, 0.1);
}

.admin-nav-link svg {
    opacity: 0.7;
    flex-shrink: 0;
}

.admin-nav-link.active svg,
.admin-nav-link:hover svg {
    opacity: 1;
}

.admin-main {
    margin-left: 240px;
    min-height: 100vh;
    background: var(--bg-base);
}

.admin-topbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-content {
    padding: 2rem 1.75rem;
}

.page-header {
    margin-bottom: 1.75rem;
}

.page-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.page-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ── Admin Stat Cards ─────────────────────────────────────── */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 0.25rem;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34D399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #FCD34D;
}

/* ── Admin Login ──────────────────────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(45, 126, 248, 0.07) 0%, transparent 70%),
        var(--bg-base);
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── Error Pages ──────────────────────────────────────────── */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-family: var(--font-head);
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 800;
    line-height: 1;
    color: var(--border-light);
    letter-spacing: -0.04em;
}

/* ── Dividers & Helpers ───────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.text-accent {
    color: var(--accent) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary-custom {
    color: var(--text-secondary) !important;
}

.bg-surface {
    background: var(--bg-surface) !important;
}

.bg-elevated {
    background: var(--bg-elevated) !important;
}

.font-mono {
    font-family: var(--font-mono) !important;
}

.font-head {
    font-family: var(--font-head) !important;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.fade-in-up-1 {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.fade-in-up-2 {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.fade-in-up-3 {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.fade-in-up-4 {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

/* ── Content Showcase Section ───────────────────────────────────── */
.content-showcase-section {
    background: var(--bg-surface);
    overflow: hidden;
    position: relative;
    padding-bottom: 4rem;
}

.showcase-slogan {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.showcase-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.6;
    font-weight: 400;
}

/* ── Auto-Scrolling Carousel (Infinite Marquee) ─────────────────── */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    display: flex;
}

.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-surface) 0%, transparent 100%);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-surface) 0%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 0.75rem;
    width: max-content;
    animation: scroll-carousel 45s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-slide {
    width: 280px;
    /* Matched to design provided (large wide vertical cards) */
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
    flex-shrink: 0;
    background: #111;
}

.carousel-slide:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

/* ── Clear Logo/SVG Marquee Track (c1 to c4) ── */
.logo-carousel-track {
    display: flex;
    gap: 6rem;
    align-items: center;
    width: max-content;
    animation: scroll-logos 25s linear infinite;
    padding: 1rem 0;
}

.logo-carousel-track:hover {
    animation-play-state: paused;
}

.logo-carousel-track img {
    height: 65px;
    /* Sized specifically for raw SVGs/Logos */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Helps transparent backgrounds */
    transition: transform 0.3s ease;
}

.logo-carousel-track img:hover {
    transform: scale(1.05);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── Compatible with all your Devices ────────────────────── */
.devices-section {
    background: linear-gradient(180deg, #05081a 0%, #080c1f 100%);
    padding: 4rem 0 0;
    overflow: hidden;
    position: relative;
}

.devices-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.devices-headline {
    margin-bottom: 2.5rem;
}

.devices-title {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0;
}

.devices-highlight {
    color: #e5373a;
}

.devices-hero-img {
    position: relative;
    margin: 0 auto;
    max-width: 1060px;
}

.devices-hero-img img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.7));
}

.devices-logos-strip {
    background: #fff;
    border-radius: 12px 12px 0 0;
    padding: 1.25rem 2rem;
    margin-top: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
}

.devices-logos-strip img {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
    background: #080c1f;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Top band */
.footer-top {
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand-name {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 0.9rem;
}

.footer-brand-name span {
    color: var(--accent);
}

.footer-tagline {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 360px;
}

.footer-socials {
    display: flex;
    gap: 0.6rem;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: var(--transition);
}

.footer-social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col-title {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li a,
.footer-links li span {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: #fff;
    padding-left: 4px;
}

/* Payments band */
.footer-payments {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}

.footer-payments-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-payments-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    white-space: nowrap;
}

.footer-payments-img img {
    max-height: 36px;
    width: auto;
    display: block;
    filter: brightness(0.85) grayscale(0.2);
    transition: filter 0.2s ease;
}

.footer-payments-img img:hover {
    filter: brightness(1) grayscale(0);
}

/* Bottom band */
.footer-bottom {
    padding: 1.1rem 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #334155;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #94a3b8;
}

/* ── Scroll Reveal System ─────────────────────────────── */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-out;
}

/* Base directions */
.reveal.reveal-up {
    transform: translateY(40px);
}

.reveal.reveal-down {
    transform: translateY(-40px);
}

.reveal.reveal-left {
    transform: translateX(-40px);
}

.reveal.reveal-right {
    transform: translateX(40px);
}

.reveal.reveal-scale {
    transform: scale(0.95);
}

/* Triggered State */
.reveal.is-visible,
.observe-fade.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Legacy fallback handling */
.observe-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .observe-fade {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ── Pricing Cards (Homepage) ────────────────────────────── */
.pricing-section {
    background-color: #FAFAFB;
}

.pricing-headline {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.pricing-subheadline {
    font-size: 1.05rem;
    color: #475569;
    font-weight: 400;
}

.pricing-cards-grid {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.pricing-card-col {
    display: flex;
}

/* Base Pricing Card */
.pricing-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

/* Most Popular Pricing Card */
.pricing-card.popular {
    border: 2px solid #2D7EF8;
    box-shadow: 0 12px 32px rgba(45, 126, 248, 0.12);
    /* Adding slight transform scale to pop it up relative to others */
    transform: scale(1.02);
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 16px 40px rgba(45, 126, 248, 0.2);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #2D7EF8;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 1.5rem;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(45, 126, 248, 0.3);
    z-index: 2;
}

.save-tag {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: #2ECC71;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    transform: rotate(5deg);
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
    z-index: 2;
}

.pricing-duration {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-align: center;
}

.pricing-card-description {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: center;
    min-height: 3rem;
    margin-bottom: 1.5rem;
}

.pricing-price-wrapper {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D7EF8;
}

.pricing-amount {
    font-size: 3.2rem;
    font-weight: 900;
    color: #0F172A;
    line-height: 1;
    letter-spacing: -0.03em;
}

.pricing-period {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    width: 100%;
}

.pricing-features-list li {
    font-size: 0.95rem;
    color: #334155;
    padding: 0.7rem 0;
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 0.75rem;
    border-bottom: 1px solid #F1F5F9;
}

.pricing-features-list li:last-child {
    border-bottom: none;
}

.feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E8F0FE;
    color: #2D7EF8;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-card form {
    width: 100%;
    margin-top: auto;
}

@media (max-width: 575.98px) {
    .pricing-card-description {
        min-height: auto;
    }
}

.btn-buy-now {
    display: block;
    width: 100%;
    background: #0F172A;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-buy-now:hover {
    background: #2D7EF8;
    color: #fff;
    transform: translateY(-2px);
}

.admin-toast-container {
    z-index: 1080;
}

.admin-toast {
    min-width: 320px;
    background: rgba(14, 22, 35, 0.96);
    color: var(--text-primary);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    overflow: hidden;
}

.admin-toast .toast-header {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.admin-toast .toast-body {
    color: var(--text-secondary);
    font-weight: 500;
}

.admin-toast-success {
    border-left: 4px solid var(--success) !important;
}

/* ── Button Wave Effect (Sea Wave) ─────────────────────────────────────────── */
.btn,
.btn-buy-now,
.btn-primary-hero,
.btn-outline-hero {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after,
.btn-buy-now::after,
.btn-primary-hero::after,
.btn-outline-hero::after {
    content: '';
    position: absolute;
    left: -50%;
    bottom: -150%;
    width: 200%;
    height: 200%;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 40%;
    z-index: -1;
    transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: wave-action 4s infinite linear;
    animation-play-state: paused;
    pointer-events: none;
}

.btn:hover::after,
.btn-buy-now:hover::after,
.btn-primary-hero:hover::after,
.btn-outline-hero:hover::after {
    bottom: -50%;
    animation-play-state: running;
}

[data-bs-theme="dark"] .btn::after,
[data-bs-theme="dark"] .btn-buy-now::after,
[data-bs-theme="dark"] .btn-primary-hero::after,
[data-bs-theme="dark"] .btn-outline-hero::after {
    background-color: rgba(255, 255, 255, 0.08);
}

@keyframes wave-action {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ── Floating WhatsApp Chat ───────────────────────────────────────────── */
.floating-whatsapp {
    position: fixed;
    width: 82px;
    height: 82px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 40px;
    box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: float-wa 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
    background-color: #1ebea5;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 0px 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes float-wa {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 58px;
        height: 58px;
        bottom: 20px;
        right: 20px;
        font-size: 34px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .hero-stat-value {
        font-size: 1.4rem;
    }

    .admin-content {
        padding: 1.25rem 1rem;
    }
}
