/* 
   DETECTIN - Modern Design System 
   v2.0.0
*/

:root {
    /* 
       COLOR PALETTE 
       Using HSL for better manipulation
    */
    --primary-h: 245;
    --primary-s: 75%;
    --primary-l: 60%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-dark: hsl(var(--primary-h), var(--primary-s), 50%);
    --primary-light: hsl(var(--primary-h), var(--primary-s), 95%);

    --accent-h: 160;
    --accent-s: 84%;
    --accent-l: 39%;
    --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));

    /* Neutral Scale */
    --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;

    /* Semantic Colors */
    --bg-body: var(--gray-50);
    --bg-card: var(--white);
    --text-main: var(--gray-900);
    --text-muted: var(--gray-500);
    --border-light: var(--gray-200);

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Spacing & Layout */
    --container-max: 1280px;
    --header-height: 72px;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 200ms;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration) var(--ease-out);
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--gray-900);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

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

.text-sm {
    font-size: 0.875rem;
}

/* LAYOUT UTILITIES */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-wrapper {
    flex: 1;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
}

/* COMPONENTS: BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--gray-300);
    color: var(--gray-700);
}

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

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

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

.btn-block {
    width: 100%;
}

/* COMPONENTS: FORMS */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--duration), box-shadow var(--duration);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

/* COMPONENTS: CARDS */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--gray-50);
}

.card-body {
    padding: 1.5rem;
}

/* HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    transition: all var(--duration);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform var(--duration) var(--ease-out);
    z-index: 99;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

/* HERO SECTION */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: radial-gradient(circle at top center, var(--primary-light) 0%, transparent 70%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* FEATURES GRID */
.features-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: transform var(--duration);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    text-align: center;
    position: relative;
    transition: all var(--duration);
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin: 1rem 0;
}

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

/* AUTH PAGES */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

/* DASHBOARD LAYOUT */
.dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    max-width: var(--container-max);
    margin: 2rem auto;
    padding: 0 1.5rem;
    min-height: 60vh;
}

.sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-600);
    font-weight: 500;
    border-radius: var(--radius-md);
    margin-bottom: 0.25rem;
    transition: all var(--duration);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.sidebar-nav a.logout {
    margin-top: 1.5rem;
    color: var(--error);
    border-top: 1px solid var(--border-light);
    border-radius: 0;
    padding-top: 1.5rem;
}

.sidebar-nav a.logout:hover {
    background-color: #fef2f2;
}

/* DASHBOARD STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 0.5rem;
}

/* QUERY PAGE */
.tab-container {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    position: relative;
    transition: color var(--duration);
}

.tab-btn:hover {
    color: var(--gray-900);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* ALERTS */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

/* FOOTER */
footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-light);
    padding: 4rem 0;
    margin-top: auto;
    text-align: center;
    color: var(--gray-500);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .dashboard-container {
        grid-template-columns: 220px 1fr;
    }
}

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

    .mobile-toggle {
        display: block;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .sidebar-nav a {
        white-space: nowrap;
        margin: 0;
        background: var(--gray-50);
    }

    .sidebar-nav a.logout {
        margin-top: 0;
        border-top: none;
        border-left: 1px solid var(--border-light);
        padding-top: 0.75rem;
    }
}

/* PREMIUM RESULT STYLES */

.profile-header-premium {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--border-light);
}

.profile-avatar-premium {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

.profile-info-premium h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--gray-900);
}

.badges {
    display: flex;
    gap: 0.5rem;
}

.sub-card {
    margin-top: 1rem;
    border-left: 4px solid var(--primary);
}

.section-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header i {
    color: var(--primary);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.data-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.data-icon {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.data-content {
    display: flex;
    flex-direction: column;
}

.data-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.data-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-900);
    word-break: break-word;
}

/* DROPDOWN MENU */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-top: 0.5rem;
}

.dropdown-content a {
    color: var(--gray-700);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: background-color var(--duration);
}

.dropdown-content a:hover {
    background-color: var(--gray-50);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* PRICING HERO */
.pricing-hero {
    padding: 6rem 0;
    background: radial-gradient(circle at top center, var(--primary-light) 0%, transparent 70%);
}

.badge-soft {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 4rem;
}

/* PRICING CARDS REDESIGN */
.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 0.25rem;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-left: 0.25rem;
}

.plan-description {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.divider {
    height: 1px;
    background-color: var(--border-light);
    margin-bottom: 2rem;
    width: 100%;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    flex: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.features-list li i {
    color: var(--success);
    font-size: 1.1rem;
}

/* FAQ SECTION */
.faq-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.faq-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* LEGAL PAGES */
.legal-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--gray-500);
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.legal-content p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--gray-700);
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* CHECKOUT PAGE */
.checkout-wrapper {
    background-color: var(--gray-50);
    min-height: calc(100vh - var(--header-height));
    padding: 2rem 0;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.back-link {
    color: var(--gray-600);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: var(--primary);
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
    background: #ecfdf5;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

/* CHECKOUT SUMMARY */
.summary-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.package-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.package-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.summary-divider {
    height: 1px;
    background: var(--border-light);
    margin: 1.5rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--success);
}

/* CHECKOUT PAYMENT */
.payment-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

.payment-method-selector {
    border: 2px solid var(--primary);
    background: #f5f3ff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    cursor: pointer;
    position: relative;
}

.method-icon {
    font-size: 2rem;
    color: var(--primary);
}

.method-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.method-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.method-check {
    margin-left: auto;
    color: var(--primary);
    font-size: 1.25rem;
}

.payment-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.payment-footer a {
    color: var(--primary);
    text-decoration: underline;
}

/* QR CODE SECTION */
.qr-section {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.qr-wrapper {
    background: var(--white);
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.qr-wrapper img {
    width: 220px;
    height: 220px;
}

.copy-paste-section {
    max-width: 400px;
    margin: 0 auto 2rem;
}

.copy-paste-section p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    text-align: left;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    font-family: monospace;
    color: var(--gray-700);
}

.btn-copy {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    width: 48px;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s;
}

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

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

.payment-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

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

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

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

.success-state {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #ecfdf5;
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* QUERY SCREEN STYLES */
.query-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-light);
}

.query-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    backdrop-filter: blur(5px);
}

.query-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.query-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* TABS */
.query-tabs {
    display: flex;
    background: var(--gray-50);
    padding: 1rem 2rem 0;
    border-bottom: 1px solid var(--border-light);
    gap: 0.5rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    bottom: -1px;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border-light);
    border-bottom-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

/* QUERY BODY */
.query-body {
    padding: 3rem 2rem;
}

.search-form {
    animation: fadeIn 0.3s ease-out;
}

.cost-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #eff6ff;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    border: 1px solid #dbeafe;
}

/* RADIO CARDS */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-card {
    flex: 1;
    border: 2px solid var(--border-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.radio-card:hover {
    border-color: var(--primary-light);
    background: var(--gray-50);
}

.radio-card.active {
    border-color: var(--primary);
    background: #eef2ff;
    color: var(--primary);
    font-weight: 600;
}

.radio-card input {
    accent-color: var(--primary);
}

/* INPUTS */
.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    transition: color 0.2s;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.form-control {
    padding-left: 2.75rem;
    /* Space for icon */
    height: 3.5rem;
    /* Taller inputs */
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-control:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* BUTTONS */
.btn-glow {
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
    transition: all 0.2s ease-in-out;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1rem;
}

.btn-glow:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.23);
}

/* RESULTS */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.results-header h3 {
    margin: 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.export-actions {
    display: flex;
    gap: 0.5rem;
}

.result-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 2rem;
}

.result-header-main {
    padding: 2rem;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.avatar-placeholder {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.result-item label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.result-item span {
    font-size: 1.1rem;
    color: var(--gray-900);
    font-weight: 500;
    word-break: break-word;
}

.section-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.json-dump {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    color: var(--gray-700);
}