/* 
 * KoncoRPM - Minimalist Mobile-First Stylesheet
 * Clean, simple design optimized for all devices
 */

/* ========================================
   CSS Variables - Simplified
   ======================================== */
:root {
    /* Primary Color - Blue */
    --primary-50: #EEF2FF;
    --primary-100: #E0E7FF;
    --primary-200: #C7D2FE;
    --primary-500: #6366F1;
    --primary-600: #4F46E5;
    --primary-700: #4338CA;

    /* Semantic Colors */
    --success: #22C55E;
    --success-light: #DCFCE7;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --error: #EF4444;
    --error-light: #FEE2E2;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows - Minimal */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: 200ms ease;

    /* Layout */
    --sidebar-width: 240px;
    --bottom-nav-height: 64px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--bottom-nav-height);
    overflow-x: hidden;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

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

a {
    color: var(--primary-600);
    text-decoration: none;
}

a:hover {
    color: var(--primary-700);
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.25rem;
}

h3 {
    font-size: 1.125rem;
}

h4 {
    font-size: 1rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }
}

.text-gradient {
    color: var(--primary-600);
}

/* ========================================
   Layout
   ======================================== */
.container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-600);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-700);
    color: white;
}

.btn-secondary {
    background: var(--primary-50);
    color: var(--primary-600);
}

.btn-secondary:hover {
    background: var(--primary-100);
}

.btn-outline {
    background: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: 0.8125rem;
}

.btn-icon {
    padding: var(--space-2);
    width: 36px;
    height: 36px;
}

/* AI Magic Button - Attention Grabbing */
.btn-ai-magic {
    background: linear-gradient(135deg, #6366F1 0%, #a855f7 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulse-ai 2s infinite;
    font-weight: 600;
}

.btn-ai-magic:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-1px);
}

.btn-ai-magic i {
    margin-right: var(--space-2);
}

@keyframes pulse-ai {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.w-full {
    width: 100%;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.card-body {
    padding: var(--space-4);
}

@media (min-width: 768px) {
    .card-body {
        padding: var(--space-6);
    }
}

.card-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-100);
}

@media (min-width: 768px) {
    .card-header {
        padding: var(--space-4) var(--space-6);
    }
}

.card-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.card-gradient {
    background: var(--primary-600);
    color: white;
    border: none;
}

.card-gradient h1,
.card-gradient h2,
.card-gradient h3,
.card-gradient h4,
.card-gradient h5,
.card-gradient h6 {
    color: white;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: var(--space-3);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--gray-900);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-500);
}

.form-control::placeholder {
    color: var(--gray-400);
}

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

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em;
    padding-right: 2.5rem;
}

.form-hint {
    margin-top: var(--space-1);
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.form-error {
    margin-top: var(--space-1);
    font-size: 0.8125rem;
    color: var(--error);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    accent-color: var(--primary-600);
}

.form-check-label {
    font-size: 0.9375rem;
    color: var(--gray-700);
}

/* ========================================
   Navigation - Desktop Sidebar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    height: 56px;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.navbar-brand-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-600);
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.875rem;
}

.navbar-nav {
    display: none;
    list-style: none;
}

@media (min-width: 768px) {
    .navbar-nav {
        display: flex;
        gap: var(--space-6);
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.navbar-toggle {
    display: flex;
    padding: var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-600);
}

@media (min-width: 768px) {
    .navbar-toggle {
        display: none;
    }
}

/* ========================================
   Dashboard Layout
   ======================================== */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Hidden on mobile, visible on desktop */
.sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--gray-200);
    z-index: 100;
    flex-direction: column;
}

@media (min-width: 768px) {
    .sidebar {
        display: flex;
    }
}

.sidebar.open {
    display: flex;
    z-index: 2000;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu-item {
    margin-bottom: var(--space-1);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.sidebar-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.sidebar-link.active {
    background: var(--primary-50);
    color: var(--primary-600);
}

.sidebar-link-icon {
    width: 18px;
    text-align: center;
    font-size: 0.9375rem;
}

.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--gray-100);
}

/* Main Content */
.main-content {
    flex: 1;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .main-content {
        margin-left: var(--sidebar-width);
    }
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: white;
    border-bottom: 1px solid var(--gray-100);
}

@media (min-width: 768px) {
    .main-header {
        padding: var(--space-4) var(--space-6);
    }
}

.main-body {
    padding: var(--space-4);
    max-width: 1000px;
}

@media (min-width: 768px) {
    .main-body {
        padding: var(--space-6);
    }
}

.page-header {
    margin-bottom: var(--space-6);
}

.page-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-1);
}

@media (min-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ========================================
   Bottom Navigation (Mobile)
   ======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-top: 1px solid var(--gray-200);
    height: var(--bottom-nav-height);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 var(--space-2);
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
    min-width: 60px;
    font-size: 0.625rem;
    color: var(--gray-500);
    text-decoration: none;
    gap: var(--space-1);
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item.active {
    color: var(--primary-600);
}

.bottom-nav-item:hover {
    color: var(--primary-600);
}

/* ========================================
   Stats Cards
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-4);
    }
}

.stat-card {
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.stat-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    font-size: 1rem;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: var(--radius-md);
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

@media (min-width: 768px) {
    .stat-card-value {
        font-size: 1.75rem;
    }
}

.stat-card-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ========================================
   Tables
   ======================================== */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.table th {
    padding: var(--space-3) var(--space-4);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    background: var(--gray-50);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.table td {
    padding: var(--space-3) var(--space-4);
    font-size: 0.875rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

/* ========================================
   Badges
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--primary-50);
    color: var(--primary-600);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-error {
    background: var(--error-light);
    color: var(--error);
}

/* ========================================
   Utilities - Responsive Grid & Flex
   ======================================== */
.grid {
    display: grid;
    gap: var(--space-4);
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.input-group-responsive {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-2);
    align-items: center;
    width: 100%;
}

.flex-1 {
    flex: 1;
}

.shrink-0 {
    flex-shrink: 0;
}

.min-w-0 {
    min-width: 0;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-3 {
    gap: var(--space-3);
}

.gap-4 {
    gap: var(--space-4);
}

.w-full {
    width: 100%;
}

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

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mt-4 {
    margin-top: var(--space-4);
}

.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }

    .hide-desktop {
        display: none;
    }

    .md-grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .md-grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .md-flex-row {
        flex-direction: row;
    }

    .md-col-span-2 {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .lg-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg-grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .lg-col-span-1 {
        grid-column: span 1;
    }

    .lg-col-span-2 {
        grid-column: span 2;
    }
}

/* Auth Page Utilities */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    padding: var(--space-4);
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

/* Admin Tabs */
.settings-tabs {
    display: flex;
    gap: var(--space-1);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--space-6);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.settings-tab {
    padding: var(--space-3) var(--space-4);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.settings-tab:hover {
    color: var(--gray-700);
}

.settings-tab.active {
    color: var(--primary-600);
    border-bottom-color: var(--primary-600);
}

.settings-tab i {
    margin-right: var(--space-2);
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: var(--space-4);
}

.alert i {
    margin-top: 0.125rem;
}

.alert-success {
    background: var(--success-light);
    color: #166534;
}

.alert-error {
    background: var(--error-light);
    color: #991B1B;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400E;
}

.alert-info {
    background: var(--primary-50);
    color: var(--primary-700);
}

/* ========================================
   Hero Section (Landing Page)
   ======================================== */
.hero {
    padding: var(--space-12) 0;
    background: white;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    margin-bottom: var(--space-4);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-600);
    background: var(--primary-50);
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
}

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-200);
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ========================================
   Section
   ======================================== */
.section {
    padding: var(--space-12) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-10);
}

.section-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    margin-bottom: var(--space-3);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-600);
    background: var(--primary-50);
    border-radius: var(--radius-full);
}

.section-title {
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
}

.feature-card {
    padding: var(--space-5);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    font-size: 1.125rem;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    color: var(--primary-600);
}

.feature-title {
    font-size: 1rem;
    margin-bottom: var(--space-2);
}

.feature-description {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    counter-reset: step;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step {
    position: relative;
    padding: var(--space-5);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 auto var(--space-3);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: var(--primary-600);
    border-radius: var(--radius-full);
}

.step-title {
    font-size: 0.9375rem;
    margin-bottom: var(--space-2);
}

.step-description {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: var(--space-8) 0;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(2, 1fr);
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-700);
    text-align: center;
}

.footer-copyright {
    font-size: 0.8125rem;
}

/* ========================================
   Wizard/Steps Form
   ======================================== */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-8);
    overflow-x: auto;
    padding: var(--space-2) 0;
}

.wizard-step {
    display: flex;
    align-items: center;
}

.wizard-step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-400);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.wizard-step.active .wizard-step-number {
    color: white;
    background: var(--primary-600);
}

.wizard-step.completed .wizard-step-number {
    color: white;
    background: var(--success);
}

.wizard-step-line {
    width: 40px;
    height: 2px;
    background: var(--gray-200);
    margin: 0 var(--space-2);
}

@media (min-width: 768px) {
    .wizard-step-line {
        width: 60px;
    }
}

.wizard-step.completed+.wizard-step .wizard-step-line,
.wizard-step.completed .wizard-step-line {
    background: var(--success);
}

.wizard-content {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: var(--space-5);
}

@media (min-width: 768px) {
    .wizard-content {
        padding: var(--space-8);
    }
}

.wizard-title {
    text-align: center;
    margin-bottom: var(--space-6);
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-100);
    gap: var(--space-3);
}

.wizard-actions .btn {
    flex: 1;
}

@media (min-width: 768px) {
    .wizard-actions .btn {
        flex: none;
    }
}

/* ========================================
   Pricing
   ======================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pricing-card {
    position: relative;
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--primary-500);
    border-width: 2px;
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-1) var(--space-3);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    background: var(--primary-600);
    border-radius: var(--radius-full);
}

.pricing-name {
    font-size: 1rem;
    margin-bottom: var(--space-2);
}

.pricing-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.pricing-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-500);
}

.pricing-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-6);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.pricing-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 600;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: var(--space-12) 0;
    background: var(--primary-600);
    color: white;
    text-align: center;
}

.cta-section .section-title {
    color: white;
}

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-600);
}

.cta-section .btn-primary:hover {
    background: var(--gray-100);
}

/* ========================================
   Utilities
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-600);
}

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

.text-error {
    color: var(--error);
}

.text-muted {
    color: var(--gray-500);
}

.bg-white {
    background-color: white;
}

.bg-gray {
    background-color: var(--gray-100);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.p-4 {
    padding: var(--space-4);
}

.p-6 {
    padding: var(--space-6);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-4 {
    gap: var(--space-4);
}

.hidden {
    display: none;
}

.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }

    .hide-desktop {
        display: none;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.animate-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.3s ease forwards;
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    overflow-x: auto;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--gray-200);
    -webkit-overflow-scrolling: touch;
}

.settings-tabs::-webkit-scrollbar {
    height: 4px;
}

.settings-tabs::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: var(--radius-full);
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    color: var(--gray-500);
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.settings-tab:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.settings-tab.active {
    background: var(--primary-50);
    color: var(--primary-600);
}

.settings-tab i {
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .settings-tab {
        padding: var(--space-2) var(--space-3);
        font-size: 0.875rem;
    }
}

/* WhatsApp Bubble */
.wa-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.wa-bubble:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .wa-bubble {
        bottom: 30px;
        right: 20px;
        width: 54px;
        height: 54px;
        font-size: 26px;
    }
}

@media print {
    .hide-print {
        display: none !important;
    }
}