/* ===========================================
   HOSTIOO PAGAMENTOS E SERVIÇOS
   Design System - Dark/Light com Glassmorphism
   =========================================== */

/* CSS Variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8e8ea0;
    --accent-primary: #6c63ff;
    --accent-secondary: #00d4aa;
    --accent-gradient: linear-gradient(135deg, #6c63ff 0%, #00d4aa 100%);
    --danger: #ff4757;
    --warning: #ffa502;
    --success: #2ed573;
    --border-color: rgba(108, 99, 255, 0.12);
    --shadow: 0 8px 32px rgba(108, 99, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a35;
    --bg-card: rgba(26, 26, 53, 0.7);
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0c0;
    --text-muted: #6a6a8a;
    --border-color: rgba(108, 99, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(26, 26, 53, 0.6);
    --glass-border: rgba(108, 99, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    min-height: 100vh;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: all var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Navbar */
.navbar-hostioo {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}

.navbar-hostioo .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-hostioo .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.navbar-hostioo .nav-link:hover,
.navbar-hostioo .nav-link.active {
    color: var(--accent-primary) !important;
    background: rgba(108, 99, 255, 0.08);
}

/* Buttons */
.btn-hostioo {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-hostioo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
    color: #fff;
}

.btn-hostioo:active {
    transform: translateY(0);
}

.btn-hostioo-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.5625rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition);
}

.btn-hostioo-outline:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

/* Form Elements */
.form-hostioo {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    transition: all var(--transition);
    width: 100%;
}

.form-hostioo:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12);
    outline: none;
}

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

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(108, 99, 255, 0.06) 0%, transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(0, 212, 170, 0.06) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, -5%); }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 540px;
}

/* Features / Cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--accent-primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: #fff;
}

/* Conversational Checkout */
.checkout-container {
    max-width: 680px;
    margin: 2rem auto;
}

.checkout-step {
    display: none;
    animation: fadeSlideIn 0.4s ease-out;
}

.checkout-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.checkout-progress .step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all var(--transition);
}

.checkout-progress .step-dot.active {
    background: var(--accent-primary);
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.4);
    transform: scale(1.2);
}

.checkout-progress .step-dot.done {
    background: var(--success);
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    max-width: 420px;
    width: 100%;
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-primary);
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    transform: rotate(30deg);
}

/* Status Badges */
.badge-hostioo {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-aguardando { background: rgba(255, 165, 2, 0.12); color: var(--warning); }
.badge-confirmado { background: rgba(46, 213, 115, 0.12); color: var(--success); }
.badge-cancelado  { background: rgba(255, 71, 87, 0.12); color: var(--danger); }
.badge-reembolsado { background: rgba(108, 99, 255, 0.12); color: var(--accent-primary); }

/* Table Clean */
.table-hostioo {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table-hostioo thead th {
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
}

.table-hostioo tbody tr {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.table-hostioo tbody tr:hover {
    box-shadow: var(--shadow);
    transform: scale(1.005);
}

.table-hostioo tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .glass-card {
        padding: 1.25rem;
    }
    .checkout-container {
        margin: 1rem;
    }
}
