/* ============================================
   Compare My Loan — Master Stylesheet
   Clean, modern, production-ready CSS
   ============================================ */


/* ============================================
   1. CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Brand Blues */
    --primary-50:  #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Neutral Grays */
    --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 */
    --color-success: #059669;
    --color-success-bg: #d1fae5;
    --color-warning: #f59e0b;
    --color-warning-bg: #fef3c7;
    --color-danger:  #ef4444;
    --color-danger-bg: #fee2e2;
    --color-info:    #2563eb;
    --color-info-bg: #dbeafe;

    /* Gradients */
    --gradient-primary:   linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
    --gradient-hero:      linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #312e81 100%);
    --gradient-accent:    linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success:   linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm:      linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

    /* Shadows */
    --shadow-xs:  0 1px 2px 0 rgba(0,0,0,.05);
    --shadow-sm:  0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
    --shadow-md:  0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);
    --shadow-blue: 0 4px 20px rgba(37,99,235,.25);
    --shadow-blue-lg: 0 8px 40px rgba(37,99,235,.35);

    /* Radii */
    --radius-sm:   0.375rem;
    --radius-md:   0.5rem;
    --radius-lg:   0.75rem;
    --radius-xl:   1rem;
    --radius-2xl:  1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast:   all 0.15s ease;
    --transition-base:   all 0.3s ease;
    --transition-slow:   all 0.5s ease;
    --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}


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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    font-family: inherit;
}

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


/* ============================================
   3. Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--gray-900);
}

h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem,3vw, 2rem);   }
h4 { font-size: clamp(1.125rem,2vw,1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem;     }

p {
    line-height: 1.75;
    color: var(--gray-600);
}

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

.text-gradient-blue {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--gray-500);
}


/* ============================================
   4. Keyframe Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0);     }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9);  }
    to   { opacity: 1; transform: scale(1);    }
}

@keyframes float {
    0%, 100% { transform: translateY(0);     }
    50%      { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1;   }
    50%      { opacity: 0.5; }
}

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

@keyframes shimmer {
    0%   { background-position: -1000px 0; }
    100% { background-position:  1000px 0; }
}

@keyframes bounceIn {
    0%   { opacity: 0; transform: scale(0.3);  }
    50%  { opacity: 1; transform: scale(1.05); }
    70%  { transform: scale(0.9);              }
    100% { transform: scale(1);                }
}

@keyframes gradientShift {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

/* Animation Utility Classes */
.animate-fade-in       { animation: fadeIn       0.6s ease-out both; }
.animate-fade-in-down  { animation: fadeInDown   0.6s ease-out both; }
.animate-slide-in-right{ animation: slideInRight 0.6s ease-out both; }
.animate-slide-in-left { animation: slideInLeft  0.6s ease-out both; }
.animate-scale-in      { animation: scaleIn      0.5s ease-out both; }
.animate-float         { animation: float        3s ease-in-out infinite; }
.animate-bounce-in     { animation: bounceIn     0.6s ease-out both; }
.animate-spin          { animation: spin         1s linear infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll-triggered animation base */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   5. Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

/* Ripple effect */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.3s ease;
}

.btn:active::after {
    background: rgba(255,255,255,0.15);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-lg);
    filter: brightness(1.08);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-blue);
}

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

.btn-secondary:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border-color: var(--primary-600);
}

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

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

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

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

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

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

.btn-success:hover {
    background: #047857;
    transform: translateY(-2px);
}

/* Sizes */
.btn-xs  { padding: 0.375rem 0.75rem;  font-size: 0.75rem;  }
.btn-sm  { padding: 0.5rem   1rem;     font-size: 0.875rem; }
.btn-lg  { padding: 1rem     2rem;     font-size: 1.125rem; }
.btn-xl  { padding: 1.25rem  2.5rem;   font-size: 1.25rem;  }
.btn-full{ width: 100%; }

/* Loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::before {
    content: '';
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}


/* ============================================
   6. Cards
   ============================================ */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid var(--gray-100);
}

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

.card-flat {
    box-shadow: none;
    border: 1px solid var(--gray-200);
}

.card-flat:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

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

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 700;
    font-size: 1.125rem;
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-text {
    color: var(--gray-500);
    line-height: 1.6;
    font-size: 0.9375rem;
}


/* ============================================
   7. Badges & Pills
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.badge-primary { background: var(--primary-100);       color: var(--primary-800); }
.badge-success { background: var(--color-success-bg);  color: #065f46;            }
.badge-warning { background: var(--color-warning-bg);  color: #92400e;            }
.badge-danger  { background: var(--color-danger-bg);   color: #991b1b;            }
.badge-gray    { background: var(--gray-100);          color: var(--gray-700);    }
.badge-dark    { background: var(--gray-800);          color: white;              }

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

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-700);
    transition: var(--transition-fast);
}

.tag:hover {
    background: var(--primary-100);
    color: var(--primary-700);
}


/* ============================================
   8. Forms
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-label.required::after {
    content: ' *';
    color: var(--color-danger);
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: 0.6875rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    line-height: 1.5;
    color: var(--gray-800);
    background: white;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    appearance: none;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--gray-400);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.form-input.success,
.form-select.success,
.form-textarea.success {
    border-color: var(--color-success);
    box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}

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

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

.form-error {
    font-size: 0.8125rem;
    color: var(--color-danger);
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Select arrow */
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    border: 1.5px solid var(--gray-300);
    border-radius: 0.25rem;
    background: white;
    flex-shrink: 0;
    margin-top: 0.125rem;
    accent-color: var(--primary-600);
    cursor: pointer;
    transition: var(--transition-fast);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

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

/* Input Group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-input {
    flex: 1;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    flex-shrink: 0;
}

.input-addon {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: var(--gray-100);
    border: 1.5px solid var(--gray-300);
    color: var(--gray-500);
    font-size: 0.9375rem;
    white-space: nowrap;
}

.input-addon:first-child {
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-addon:last-child {
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}


/* ============================================
   9. Alerts & Notifications
   ============================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.alert-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.alert-info    { background: var(--color-info-bg);    border-color: var(--color-info);    color: #1e40af; }
.alert-success { background: var(--color-success-bg); border-color: var(--color-success); color: #065f46; }
.alert-warning { background: var(--color-warning-bg); border-color: var(--color-warning); color: #92400e; }
.alert-danger  { background: var(--color-danger-bg);  border-color: var(--color-danger);  color: #991b1b; }

.alert-dismissible {
    position: relative;
    padding-right: 3rem;
}

.alert-close {
    position: absolute;
    top: 0.875rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition-fast);
    color: inherit;
    line-height: 1;
}

.alert-close:hover { opacity: 1; }


/* ============================================
   10. Modals
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: white;
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: scaleIn 0.25s ease-out;
    position: relative;
}

.modal-sm  { max-width: 400px; }
.modal-lg  { max-width: 800px; }
.modal-xl  { max-width: 1100px; }
.modal-full{ max-width: 95vw; max-height: 95vh; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--gray-500);
    font-size: 1.25rem;
    line-height: 1;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}


/* ============================================
   11. Tooltips
   ============================================ */
.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    z-index: 100;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-900);
    color: white;
    text-align: center;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: var(--shadow-lg);
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--gray-900);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Tooltip positions */
.tooltip-bottom .tooltip-text {
    bottom: auto;
    top: calc(100% + 8px);
}

.tooltip-bottom .tooltip-text::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--gray-900);
}

.tooltip-right .tooltip-text {
    bottom: auto;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
}

.tooltip-right .tooltip-text::after {
    top: 50%;
    left: auto;
    right: 100%;
    transform: translateY(-50%);
    border-top-color: transparent;
    border-right-color: var(--gray-900);
}


/* ============================================
   12. Skeleton Loading
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.skeleton-text  { height: 0.875rem; margin-bottom: 0.5rem; border-radius: var(--radius-full); }
.skeleton-title { height: 1.75rem;  width: 55%;            border-radius: var(--radius-full); }
.skeleton-image { height: 220px;    width: 100%;           border-radius: var(--radius-xl);   }
.skeleton-avatar{ height: 3rem;     width: 3rem;           border-radius: 50%;                }
.skeleton-btn   { height: 2.75rem;  width: 8rem;           border-radius: var(--radius-md);   }

.skeleton-paragraph .skeleton-text:last-child {
    width: 70%;
}


/* ============================================
   13. Progress & Meters
   ============================================ */
.progress {
    height: 0.625rem;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-sm { height: 0.375rem; }
.progress-lg { height: 1rem;     }

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.progress-bar.animated::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.3) 50%, transparent 100%);
    animation: shimmer 1.5s ease-in-out infinite;
    background-size: 200% 100%;
}

.progress-bar.success { background: linear-gradient(90deg, #059669, #10b981); }
.progress-bar.warning { background: linear-gradient(90deg, #d97706, #f59e0b); }
.progress-bar.danger  { background: linear-gradient(90deg, #dc2626, #ef4444); }


/* ============================================
   14. Tabs
   ============================================ */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition-fast);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gray-500);
    white-space: nowrap;
    flex-shrink: 0;
}

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

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

/* Pill tabs variant */
.tabs-pill {
    border-bottom: none;
    gap: 0.375rem;
    background: var(--gray-100);
    padding: 0.25rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
}

.tabs-pill .tab {
    border-bottom: none;
    border-radius: var(--radius-md);
    margin-bottom: 0;
    padding: 0.5rem 1rem;
}

.tabs-pill .tab.active {
    background: white;
    color: var(--primary-700);
    box-shadow: var(--shadow-sm);
}


/* ============================================
   15. Accordion (FAQ)
   ============================================ */
.accordion-item {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xl);
    margin-bottom: 0.625rem;
    overflow: hidden;
    transition: var(--transition-base);
}

.accordion-item:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-sm);
}

.accordion-item.active {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.125rem 1.5rem;
    cursor: pointer;
    background: white;
    transition: var(--transition-fast);
    gap: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.accordion-header:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.accordion-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary-600);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    background: var(--primary-600);
    color: white;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
    color: var(--gray-600);
    line-height: 1.75;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 0 1.5rem 1.25rem;
}

/* FAQ-specific (matches existing markup) */
.faq-item {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-base);
    margin-bottom: 0.75rem;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-300);
}

.faq-toggle {
    width: 100%;
    padding: 1.25rem 1.5rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-answer {
    padding: 0 1.5rem;
    color: var(--gray-600);
    line-height: 1.75;
    border-top: 1px solid var(--gray-100);
    transition: var(--transition-base);
}


/* ============================================
   16. Pricing Cards
   ============================================ */
.pricing-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-100);
    transition: var(--transition-base);
    position: relative;
}

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

.pricing-card.featured {
    border-color: var(--primary-500);
    background: linear-gradient(180deg, var(--primary-50) 0%, white 40%);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.375rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

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

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 700;
    vertical-align: super;
    line-height: 1;
}

.pricing-period {
    font-size: 0.9375rem;
    color: var(--gray-500);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.pricing-feature::before {
    content: '';
    width: 1.125rem;
    height: 1.125rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563eb'%3E%3Cpath fill-rule='evenodd' d='M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}

.pricing-feature.disabled {
    color: var(--gray-400);
    text-decoration: line-through;
}

.pricing-feature.disabled::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath fill-rule='evenodd' d='M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z' clip-rule='evenodd'/%3E%3C/svg%3E");
}


/* ============================================
   17. Tables
   ============================================ */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9375rem;
}

.table thead {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}

.table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    white-space: nowrap;
}

.table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: middle;
}

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

.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--primary-50);
}

.table-striped tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--gray-200);
}


/* ============================================
   18. Pagination
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.pagination-item {
    min-width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gray-600);
    background: white;
    text-decoration: none;
}

.pagination-item:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-700);
}

.pagination-item.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
    box-shadow: var(--shadow-blue);
}

.pagination-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-item.dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
    pointer-events: none;
}


/* ============================================
   19. Breadcrumb
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--gray-500);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin-right: 0.375rem;
    color: var(--gray-300);
}

.breadcrumb-item a {
    color: var(--primary-600);
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-800);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--gray-700);
    font-weight: 500;
}


/* ============================================
   20. Stats & Counters
   ============================================ */
.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
    text-align: center;
}

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

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    margin: 0 auto 1rem;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

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

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.stat-change.up   { color: var(--color-success); }
.stat-change.down { color: var(--color-danger);  }


/* ============================================
   21. Image Effects
   ============================================ */
.img-hover-zoom {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-hover-zoom:hover img {
    transform: scale(1.07);
}

.img-overlay {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    pointer-events: none;
}

.img-overlay .overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 1;
    color: white;
}


/* ============================================
   22. Utility & Decoration
   ============================================ */
.glass-effect {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
}

.glass-dark {
    background: rgba(15,23,42,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
}

.gradient-border {
    position: relative;
    border-radius: var(--radius-xl);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--gradient-accent);
    z-index: -1;
}

.shadow-glow    { box-shadow: 0 0 20px rgba(37,99,235,0.25); }
.shadow-glow-lg { box-shadow: 0 0 40px rgba(37,99,235,0.35); }

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 25%, var(--gray-200) 75%, transparent 100%);
    margin: 3rem 0;
}

.highlight-bar {
    display: inline-block;
    position: relative;
    z-index: 0;
}

.highlight-bar::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: -2px;
    right: -2px;
    height: 0.35em;
    background: var(--primary-200);
    z-index: -1;
    border-radius: 2px;
}

/* Divider with text */
.divider-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-400);
    font-size: 0.875rem;
    font-weight: 500;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* Aspect ratios */
.aspect-video  { aspect-ratio: 16/9; }
.aspect-square { aspect-ratio: 1/1;  }
.aspect-4-3    { aspect-ratio: 4/3;  }

/* Scrollbar styling */
.custom-scrollbar::-webkit-scrollbar       { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 3px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }


/* ============================================
   23. Responsive Utilities
   ============================================ */
@media (max-width: 640px) {
    .card-body { padding: 1.125rem; }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .modal  { border-radius: var(--radius-xl); }
    .modal-header,
    .modal-body,
    .modal-footer { padding: 1.125rem; }

    .pricing-price { font-size: 2.5rem; }

    .stat-value { font-size: 1.875rem; }

    .table th,
    .table td { padding: 0.75rem 0.625rem; font-size: 0.875rem; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }
}

@media (max-width: 480px) {
    .tabs { gap: 0; }
    .tab  { padding: 0.625rem 0.875rem; font-size: 0.875rem; }

    .pagination-item { min-width: 2.25rem; height: 2.25rem; font-size: 0.875rem; }
}


/* ============================================
   24. Print Styles
   ============================================ */
@media print {
    .no-print       { display: none !important; }
    .whatsapp-widget,
    .chat-widget    { display: none !important; }

    body  { background: white; color: black; font-size: 12pt; }
    a     { text-decoration: underline; color: black; }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    h1, h2, h3 { page-break-after: avoid; }
    img         { max-width: 100% !important; }
}


/* ============================================
   25. Accessibility
   ============================================ */
:focus-visible {
    outline: 3px solid var(--primary-400);
    outline-offset: 2px;
    border-radius: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}