/* =========================================================
   Viralizei.cloud - Main Stylesheet
   Mobile-first, clean, conversion-focused
   ========================================================= */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a2e;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    appearance: none;
    -webkit-appearance: none;
}

/* --------------------------------------------------------
   Brand Colors
   -------------------------------------------------------- */
:root {
    --brand: #4F46E5;          /* Indigo — primary */
    --brand-light: #818CF8;    /* Light indigo */
    --brand-dark: #3730A3;     /* Dark indigo */
    --text: #1a1a2e;
    --text-light: #6B7280;
    --bg: #ffffff;
    --bg-light: #F9FAFB;
    --bg-gray: #F3F4F6;
    --border: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --max-width: 640px;
    --transition: 0.2s ease;
}

/* --------------------------------------------------------
   Container
   -------------------------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------
   Header
   -------------------------------------------------------- */
.header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
}

.header-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.02em;
}

.header-whatsapp {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition);
}

.header-whatsapp:hover {
    color: var(--brand);
}

/* --------------------------------------------------------
   Hero / Service Header
   -------------------------------------------------------- */
.hero {
    padding: 40px 20px 32px;
    text-align: center;
}

.hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 480px;
    margin: 0 auto 8px;
    line-height: 1.5;
}

.hero-delivery {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 12px;
}

.hero-delivery strong {
    color: var(--text);
}

/* --------------------------------------------------------
   Packages
   -------------------------------------------------------- */
.packages-section {
    padding: 0 20px 24px;
}

.packages-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text);
}

.packages-grid {
    display: grid;
    gap: 12px;
}

.package-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.package-card:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-md);
}

.package-card.selected {
    border-color: var(--brand);
    background: linear-gradient(135deg, rgba(79,70,229,0.03), rgba(79,70,229,0.06));
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.package-card.selected .package-check {
    opacity: 1;
}

.package-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.package-quantity {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.package-name {
    font-size: 0.85rem;
    color: var(--text-light);
}

.package-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand);
    white-space: nowrap;
}

.package-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 20px;
    background: var(--brand);
    color: #fff;
    margin-top: 4px;
}

.package-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.package-check svg {
    width: 12px;
    height: 12px;
    fill: #fff;
}

/* --------------------------------------------------------
   Fixed CTA Bar (bottom)
   -------------------------------------------------------- */
.cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 12px 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cta-bar.visible {
    transform: translateY(0);
}

.cta-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cta-bar-info {
    font-size: 0.9rem;
    color: var(--text);
}

.cta-bar-info strong {
    color: var(--brand);
}

.cta-bar-btn {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}

.cta-bar-btn:hover {
    background: var(--brand-dark);
}

/* --------------------------------------------------------
   Profile Step
   -------------------------------------------------------- */
.profile-section {
    padding: 32px 20px;
    display: none;
}

.profile-section.active {
    display: block;
}

.profile-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.profile-section .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color var(--transition);
    background: var(--bg);
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.input-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
}

.btn-primary {
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
    margin-top: 8px;
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-primary:disabled {
    background: var(--border);
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    background: var(--bg-light);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 12px;
}

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

/* --------------------------------------------------------
   Confirmation Step
   -------------------------------------------------------- */
.confirm-section {
    padding: 32px 20px;
    display: none;
}

.confirm-section.active {
    display: block;
}

.confirm-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.confirm-card .profile-url {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand);
    margin: 8px 0 16px;
}

.confirm-card .check-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.confirm-card .check-link:hover {
    color: var(--brand);
}

.confirm-options {
    text-align: center;
}

.confirm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
}

.confirm-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--brand);
}

.confirm-checkbox span {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
}

/* --------------------------------------------------------
   Order Tracking
   -------------------------------------------------------- */
.track-section {
    padding: 40px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.track-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
}

.track-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.track-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 12px 0 20px;
}

.track-status.paid {
    background: #D1FAE5;
    color: #065F46;
}

.track-status.processing {
    background: #FEF3C7;
    color: #92400E;
}

.track-status.completed {
    background: #DBEAFE;
    color: #1E40AF;
}

.track-status.problem {
    background: #FEE2E2;
    color: #991B1B;
}

.track-info {
    text-align: left;
    margin: 20px 0;
}

.track-info dt {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 12px;
}

.track-info dd {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2px;
}

.track-timeline {
    text-align: left;
    margin: 24px 0;
    padding-left: 20px;
    border-left: 2px solid var(--border);
}

.track-timeline-item {
    position: relative;
    padding: 8px 0 8px 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.track-timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.track-timeline-item.active {
    color: var(--text);
    font-weight: 600;
}

.track-timeline-item.active::before {
    background: var(--brand);
}

.track-timeline-item.done::before {
    background: var(--success);
}

.track-notice {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 20px;
    line-height: 1.5;
}

/* --------------------------------------------------------
   FAQ
   -------------------------------------------------------- */
.faq-section {
    padding: 32px 20px 40px;
    border-top: 1px solid var(--border);
}

.faq-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.faq-question {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--text-light);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 12px;
}

/* --------------------------------------------------------
   WhatsApp Float Button
   -------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37,211,102,0.4);
    z-index: 150;
    transition: transform var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* --------------------------------------------------------
   Home Page
   -------------------------------------------------------- */
.home-hero {
    padding: 60px 20px 40px;
    text-align: center;
}

.home-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.home-hero p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

.home-sections {
    padding: 0 20px 48px;
}

.home-section {
    margin-bottom: 40px;
}

.home-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.platform-grid {
    display: grid;
    gap: 12px;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.platform-card:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-md);
}

.platform-card .icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.platform-card .info h3 {
    font-size: 1rem;
    font-weight: 700;
}

.platform-card .info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.how-it-works {
    max-width: 480px;
    margin: 0 auto;
}

.how-step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
}

.how-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.how-step-text {
    font-size: 0.95rem;
    padding-top: 6px;
}

/* --------------------------------------------------------
   Category Hub
   -------------------------------------------------------- */
.category-hero {
    padding: 48px 20px 32px;
    text-align: center;
}

.category-hero h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.category-hero p {
    color: var(--text-light);
    margin-top: 8px;
}

.services-list {
    padding: 0 20px 48px;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: all var(--transition);
}

.service-link:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-md);
}

.service-link .name {
    font-weight: 700;
    font-size: 1rem;
}

.service-link .arrow {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* --------------------------------------------------------
   Home Footer
   -------------------------------------------------------- */
.site-footer {
    padding: 32px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --------------------------------------------------------
   Admin Styles
   -------------------------------------------------------- */
.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.admin-login-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.admin-login-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-login-card p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #24292f;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-github:hover {
    background: #000;
}

.btn-github svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

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

.admin-sidebar {
    width: 240px;
    background: var(--text);
    color: #fff;
    padding: 24px 0;
    flex-shrink: 0;
}

.admin-sidebar-brand {
    padding: 0 20px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar nav a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.admin-main {
    flex: 1;
    background: var(--bg-light);
    padding: 32px;
    overflow-x: auto;
}

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

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.stat-card .label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 4px;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-table th {
    background: var(--bg-light);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

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

/* Status Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-active { background: #D1FAE5; color: #065F46; }
.badge-inactive { background: #FEE2E2; color: #991B1B; }
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-paid { background: #D1FAE5; color: #065F46; }
.badge-cancelled { background: #FEE2E2; color: #991B1B; }
.badge-processing { background: #DBEAFE; color: #1E40AF; }
.badge-completed { background: #D1FAE5; color: #065F46; }
.badge-problem { background: #FEE2E2; color: #991B1B; }

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--bg);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-save {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-save:hover {
    background: var(--brand-dark);
}

.btn-cancel {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-cancel:hover {
    background: var(--bg-gray);
}

/* SEO Score */
.seo-score {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.seo-score-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.seo-score-circle.good { background: #D1FAE5; color: #065F46; }
.seo-score-circle.medium { background: #FEF3C7; color: #92400E; }
.seo-score-circle.bad { background: #FEE2E2; color: #991B1B; }

.seo-checks {
    list-style: none;
}

.seo-checks li {
    font-size: 0.85rem;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-checks li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

.seo-checks li.missing::before {
    content: '✗';
    color: var(--error);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text-light);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* Admin flash messages */
.flash-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.flash-message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.flash-message.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* --------------------------------------------------------
   404 Page
   -------------------------------------------------------- */
.page-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 40px 20px;
}

.page-404 h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--border);
}

.page-404 p {
    color: var(--text-light);
    margin: 12px 0 24px;
}

/* --------------------------------------------------------
   Loading spinner
   -------------------------------------------------------- */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------
   Cloud decoration (subtle)
   -------------------------------------------------------- */
.cloud-bg {
    position: relative;
    overflow: hidden;
}

.cloud-bg::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79,70,229,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cloud-bg::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(129,140,248,0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* --------------------------------------------------------
   Responsive — Tablet & Desktop
   -------------------------------------------------------- */
@media (min-width: 768px) {
    :root {
        --max-width: 680px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .home-hero h1 {
        font-size: 2.5rem;
    }

    .packages-grid {
        grid-template-columns: 1fr 1fr;
    }

    .platform-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-sidebar {
        display: block;
    }

    .admin-layout {
        display: flex;
    }
}

/* Admin responsive */
@media (max-width: 767px) {
    .admin-sidebar {
        display: none;
    }

    .admin-layout {
        display: block;
    }

    .admin-main {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.4rem;
    }

    .package-card {
        padding: 16px;
    }

    .cta-bar-info {
        font-size: 0.8rem;
    }

    .cta-bar-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* =========================================================
   Landing — Conversion-focused Single Page
   ========================================================= */

/* Main */
.landing-main {
    padding: 32px 20px 0;
    background: linear-gradient(180deg, #f0f0ff 0%, #ffffff 40%);
}

.landing-container {
    max-width: 560px;
    margin: 0 auto;
}

/* Hero */
.landing-hero {
    text-align: center;
    margin-bottom: 28px;
}

.landing-hero h1 {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 10px;
    color: var(--text);
}

.landing-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Packages */
.landing-packages {
    margin-bottom: 24px;
}

.landing-packages h2 {
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.package-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px 12px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 78px;
    -webkit-tap-highlight-color: transparent;
}

.package-card:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.package-card:active {
    transform: scale(0.97);
}

.package-card.selected {
    border-color: var(--brand);
    background: linear-gradient(135deg, rgba(79,70,229,0.04), rgba(79,70,229,0.08));
    box-shadow: 0 0 0 3px rgba(79,70,229,0.15), 0 4px 12px rgba(79,70,229,0.1);
    transform: translateY(-2px);
}

.package-card.featured {
    border-color: var(--brand-light);
    background: linear-gradient(135deg, rgba(79,70,229,0.02), rgba(79,70,229,0.04));
}

.package-card.featured.selected {
    border-color: var(--brand);
    background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(79,70,229,0.10));
    box-shadow: 0 0 0 3px rgba(79,70,229,0.18), 0 6px 16px rgba(79,70,229,0.12);
}

.package-qty {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.package-card.selected .package-qty {
    color: var(--brand-dark);
}

.package-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand);
    margin-top: 3px;
}

.package-card.selected .package-price {
    color: var(--brand-dark);
}

.package-tag {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(79,70,229,0.2);
}

/* Profile Input */
.landing-profile {
    margin-bottom: 14px;
}

.landing-profile label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    text-align: center;
}

.profile-input-wrap {
    position: relative;
}

.profile-input-wrap input {
    width: 100%;
    padding: 18px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.2s ease;
    background: var(--bg);
    font-weight: 500;
}

.profile-input-wrap input::placeholder {
    color: #B0B0C0;
    font-weight: 400;
}

.profile-input-wrap input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12), 0 2px 8px rgba(79,70,229,0.06);
}

.profile-preview {
    display: none;
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.profile-preview.visible {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.preview-url {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand);
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(79,70,229,0.06);
    border-radius: 20px;
}

.preview-arrow {
    font-size: 0.75rem;
}

/* Confirmation */
.landing-confirm {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.landing-confirm:hover {
    border-color: var(--brand-light);
}

.landing-confirm.visible {
    display: flex;
}

.landing-confirm input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--brand);
    border-radius: 4px;
}

.landing-confirm span {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
    font-weight: 500;
}

/* CTA Button — Impact & Urgency */
.landing-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 20px 24px;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(79,70,229,0.35);
    -webkit-tap-highlight-color: transparent;
}

.landing-cta:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(79,70,229,0.45);
}

.landing-cta:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}

.landing-cta:disabled {
    background: var(--border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #999;
}

@keyframes ctaPulse {
    0% { box-shadow: 0 4px 16px rgba(79,70,229,0.30); }
    50% { box-shadow: 0 6px 28px rgba(79,70,229,0.50); }
    100% { box-shadow: 0 4px 16px rgba(79,70,229,0.30); }
}

@keyframes ctaSlide {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

.landing-cta:not(:disabled) {
    animation: ctaPulse 3s ease-in-out infinite, ctaSlide 0.3s ease-out;
}

.landing-cta:not(:disabled):hover {
    animation: none;
}

/* Entry animations */
.landing-hero {
    animation: fadeIn 0.4s ease-out;
}

.landing-packages {
    animation: fadeIn 0.5s ease-out;
}

.landing-profile {
    animation: fadeIn 0.6s ease-out;
}

.landing-confirm.visible {
    animation: fadeIn 0.2s ease-out;
}

.cta-text {
    white-space: nowrap;
}

.cta-price {
    font-weight: 900;
    font-size: 1.15rem;
}

/* Delivery Info */
.landing-delivery {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
    padding-bottom: 40px;
    margin-top: 4px;
}

.landing-delivery span {
    display: block;
}

.delivery-gradual {
    margin-top: 4px;
    opacity: 0.8;
}

/* How it Works */
.landing-how {
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}

.landing-how h2 {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text);
}

.how-steps {
    max-width: 400px;
    margin: 0 auto;
}

.how-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.how-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.how-text {
    font-size: 0.95rem;
    color: var(--text);
}

/* =========================================================
   Landing — Responsive
   ========================================================= */

/* Tablets */
@media (max-width: 640px) {
    .landing-hero h1 {
        font-size: 1.6rem;
    }

    .landing-main {
        padding: 28px 16px 0;
    }

    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .package-card {
        padding: 14px 8px 12px;
        min-height: 74px;
        border-radius: 12px;
    }

    .package-qty {
        font-size: 1rem;
    }

    .package-price {
        font-size: 0.8rem;
    }

    .package-tag {
        font-size: 0.5rem;
        padding: 2px 7px;
    }

    .landing-cta {
        padding: 18px 20px;
        font-size: 1.1rem;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    .landing-hero h1 {
        font-size: 1.4rem;
    }

    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .package-card {
        padding: 16px 10px 14px;
    }

    .package-qty {
        font-size: 1.05rem;
    }

    .package-price {
        font-size: 0.85rem;
    }

    .landing-cta {
        padding: 16px 20px;
        font-size: 1.05rem;
    }

    .cta-price {
        font-size: 1.05rem;
    }

    .profile-input-wrap input {
        padding: 16px;
        font-size: 1.05rem;
    }
}

/* Very small mobile */
@media (max-width: 360px) {
    .landing-hero h1 {
        font-size: 1.25rem;
    }

    .landing-hero {
        margin-bottom: 28px;
    }

    .packages-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .package-card {
        padding: 14px 8px 12px;
    }

    .package-qty {
        font-size: 0.95rem;
    }

    .package-price {
        font-size: 0.8rem;
    }

    .landing-cta {
        border-radius: 12px;
        padding: 16px 18px;
    }
}
