/* ==============================================================================
   Skyboard Bank: Premium Fintech Design System
   Sleek Glassmorphism, Micro-Animations, Dynamic Calculators & Luxurious Accents
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;300;400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette */
    --fintech-primary: #02796b;
    --fintech-primary-rgb: 2, 121, 107;
    --fintech-secondary: #0f172a;
    --fintech-accent: #4ade80;
    --fintech-accent-rgb: 74, 222, 128;
    
    /* Slate System */
    --fintech-slate-50: #f8fafc;
    --fintech-slate-100: #f1f5f9;
    --fintech-slate-200: #e2e8f0;
    --fintech-slate-300: #cbd5e1;
    --fintech-slate-400: #94a3b8;
    --fintech-slate-500: #64748b;
    --fintech-slate-800: #1e293b;
    --fintech-slate-900: #0f172a;
    --fintech-slate-950: #020617;

    /* Luxury / Private Banking Accents */
    --luxury-gold: #d4af37;
    --luxury-gold-dark: #aa8416;
    --luxury-champagne: #f3e5ab;
    --luxury-gradient: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    --luxury-gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa8416 100%);

    /* Shadows & Borders */
    --premium-shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.02);
    --premium-shadow-md: 0 15px 35px -10px rgba(0, 0, 0, 0.05);
    --premium-shadow-lg: 0 30px 60px -15px rgba(2, 121, 107, 0.08);
    --premium-glass-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.06);
    --luxury-shadow: 0 30px 70px -10px rgba(212, 175, 55, 0.15);
    --premium-border: 1px solid rgba(255, 255, 255, 0.4);
    --premium-border-dark: 1px solid rgba(255, 255, 255, 0.08);
}

/* Base Fintech Typography Overrides */
.fintech-body-font {
    font-family: 'Outfit', 'Inter', sans-serif !important;
}

/* --- Core Layout & Section Utilities --- */
.fintech-gradient-bg {
    background: radial-gradient(circle at 10% 20%, rgba(241, 245, 249, 0.6) 0%, rgba(226, 232, 240, 0.4) 100%);
    position: relative;
    overflow: hidden;
}

.fintech-gradient-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.06) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.fintech-gradient-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 121, 107, 0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* Glassmorphism Styles */
.glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    box-shadow: var(--premium-glass-shadow);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px -10px rgba(2, 121, 107, 0.12);
    border-color: rgba(2, 121, 107, 0.2);
}

.glass-panel-dark {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    color: #fff;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-dark:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--luxury-shadow);
}

/* Section Header Typography */
.fintech-title-wrap h6 {
    color: var(--fintech-primary);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 12px;
}

.fintech-title-wrap h2 {
    font-size: 44px;
    font-weight: 900;
    color: var(--fintech-secondary);
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.fintech-title-wrap p {
    font-size: 18px;
    color: var(--fintech-slate-500);
    max-width: 700px;
    margin-top: 15px;
}

/* Beautiful Interactive Badges */
.fintech-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fintech-badge-primary {
    background: rgba(2, 121, 107, 0.08);
    color: var(--fintech-primary);
    border: 1px solid rgba(2, 121, 107, 0.15);
}

.fintech-badge-accent {
    background: rgba(74, 222, 128, 0.12);
    color: #0b6623;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.fintech-badge-gold {
    background: rgba(212, 175, 55, 0.1);
    color: var(--luxury-gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Text Gradient Utilities */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--fintech-secondary) 30%, var(--fintech-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(135deg, var(--fintech-primary) 0%, var(--fintech-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa8416 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Premium Animation Keyframes --- */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes drawLine {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.4; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

.animate-glow {
    animation: pulseGlow 2.5s infinite;
}

.pulse-ring-element {
    animation: pulse-ring 3s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

/* --- Luxury Visual Element (The Cards) --- */
.luxury-credit-card {
    width: 380px;
    height: 240px;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.luxury-credit-card:hover {
    transform: translateY(-10px) rotateY(10deg);
}

.luxury-credit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 80%);
    transform: rotate(30deg);
    transition: all 0.5s ease;
}

.luxury-credit-card:hover::before {
    transform: rotate(50deg) translate(20px, 20px);
}

.luxury-card-black {
    background: linear-gradient(135deg, #101726 0%, #030712 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.luxury-card-gold {
    background: linear-gradient(135deg, #d4af37 0%, #aa8416 100%);
    border: 1px solid rgba(255,255,255,0.3);
    color: #000 !important;
}

.luxury-card-gold .card-label,
.luxury-card-gold .card-number,
.luxury-card-gold .card-holder,
.luxury-card-gold .card-expiry {
    color: #0f172a !important;
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 8px;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.luxury-card-black .card-chip {
    background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 100%);
}

.card-number {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
}

.card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-holder {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.card-expiry {
    font-size: 12px;
    font-family: monospace;
}

/* --- Sleek Interactive Slider Calculators --- */
.fintech-calculator-card {
    padding: 40px;
}

.calculator-slider-group {
    margin-bottom: 30px;
}

.calculator-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calculator-slider-label span {
    font-size: 15px;
    font-weight: 600;
    color: var(--fintech-slate-500);
}

.calculator-slider-label .slider-value-display {
    font-size: 20px;
    font-weight: 800;
    color: var(--fintech-primary);
}

/* Clean Custom Styled HTML5 Range Sliders */
.premium-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: var(--fintech-slate-200);
    outline: none;
    transition: background 0.3s ease;
}

.premium-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--fintech-primary);
    border: 3px solid #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(2, 121, 107, 0.3);
    transition: all 0.2s ease;
}

.premium-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 15px rgba(2, 121, 107, 0.4);
}

.premium-range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--fintech-primary);
    border: 3px solid #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(2, 121, 107, 0.3);
    transition: all 0.2s ease;
}

/* Custom Calculator Output Screen */
.calculator-results-screen {
    background: linear-gradient(135deg, var(--fintech-secondary) 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 35px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    height: 100%;
}

.calculator-results-screen .result-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--fintech-slate-400);
    margin-bottom: 5px;
    font-weight: 700;
}

.calculator-results-screen .result-amount {
    font-size: 42px;
    font-weight: 900;
    color: var(--fintech-accent);
    margin-bottom: 25px;
    letter-spacing: -1.5px;
}

.calculator-results-screen .result-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 15px;
}

.calculator-results-screen .result-breakdown-row span:first-child {
    color: var(--fintech-slate-300);
}

.calculator-results-screen .result-breakdown-row span:last-child {
    font-weight: 700;
    color: #fff;
}

/* --- Premium Dynamic Credit Score Gauge --- */
.credit-score-widget {
    position: relative;
    width: 220px;
    height: 120px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.credit-score-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 14;
    stroke-linecap: round;
}

.credit-score-fill {
    fill: none;
    stroke: url(#creditGlowGrad);
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 75; /* updates dynamically in JS */
    transition: stroke-dashoffset 1s ease-out;
}

.credit-score-number {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
}

.credit-score-label {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--fintech-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- Premium Timelines & Onboarding Steps --- */
.fintech-timeline {
    position: relative;
    padding-left: 50px;
}

.fintech-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 17px;
    bottom: 5px;
    width: 3px;
    background: linear-gradient(180deg, var(--fintech-primary) 0%, var(--fintech-slate-200) 100%);
    border-radius: 50px;
}

.fintech-timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.fintech-timeline-item:last-child {
    margin-bottom: 0;
}

.fintech-timeline-marker {
    position: absolute;
    left: -48px;
    top: 2px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--fintech-primary);
    box-shadow: 0 4px 10px rgba(2, 121, 107, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--fintech-primary);
    z-index: 10;
    transition: all 0.3s ease;
}

.fintech-timeline-item:hover .fintech-timeline-marker {
    background: var(--fintech-primary);
    color: #fff;
    transform: scale(1.1);
}

.fintech-timeline-content h4 {
    font-size: 20px;
    font-weight: 800;
    color: var(--fintech-secondary);
    margin-bottom: 8px;
}

.fintech-timeline-content p {
    font-size: 15px;
    color: var(--fintech-slate-500);
    margin: 0;
    line-height: 1.6;
}

/* --- Premium Comparison Table --- */
.premium-table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--premium-glass-shadow);
}

.premium-fintech-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
}

.premium-fintech-table th {
    background: rgba(15, 23, 42, 0.04);
    padding: 24px;
    font-size: 16px;
    font-weight: 800;
    color: var(--fintech-secondary);
    border-bottom: 2px solid var(--fintech-slate-200);
}

.premium-fintech-table td {
    padding: 22px 24px;
    font-size: 15px;
    color: var(--fintech-slate-800);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    font-weight: 500;
}

.premium-fintech-table tr:hover td {
    background: rgba(2, 121, 107, 0.03);
}

.premium-fintech-table td i.fa-check-circle {
    color: var(--fintech-primary);
    font-size: 18px;
}

.premium-fintech-table td i.fa-times-circle {
    color: var(--fintech-slate-300);
    font-size: 18px;
}

/* Platform Selector Toggle (Mobile & Web Cross-Platform section) */
.platform-toggle-container {
    display: inline-flex;
    background: var(--fintech-slate-100);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid var(--fintech-slate-200);
    margin-bottom: 30px;
}

.platform-btn {
    padding: 12px 28px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: var(--fintech-slate-500);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-btn.active {
    background: #fff;
    color: var(--fintech-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Beautiful Interactive Card Freeze Switch */
.freeze-switch-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 18px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--fintech-secondary);
}

.switch-label i {
    color: var(--fintech-primary);
    font-size: 20px;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--fintech-slate-300);
    transition: .4s;
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

input:checked + .switch-slider {
    background-color: var(--fintech-primary);
}

input:checked + .switch-slider:before {
    transform: translateX(22px);
}

/* Quick Action Grid inside mock web/mobile interfaces */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-action-btn:hover {
    background: var(--fintech-primary);
    color: #fff !important;
    transform: translateY(-3px);
}

.quick-action-btn:hover i {
    color: #fff !important;
}

.quick-action-btn i {
    font-size: 22px;
    color: var(--fintech-primary);
}

/* Beautiful custom circular indicator rings */
.circluar-progress-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.circluar-progress-bg {
    fill: none;
    stroke: rgba(2, 121, 107, 0.05);
    stroke-width: 10;
}

.circluar-progress-fill {
    fill: none;
    stroke: var(--fintech-primary);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 110;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1s ease-out;
}

.circluar-progress-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.circluar-progress-center h5 {
    font-size: 24px;
    font-weight: 800;
    color: var(--fintech-secondary);
    margin: 0;
}

.circluar-progress-center span {
    font-size: 11px;
    color: var(--fintech-slate-500);
    text-transform: uppercase;
    font-weight: 700;
}

/* Multi-Currency Send/Receive card components */
.currency-selector-card {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

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

.currency-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-flag-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 14px;
}

.currency-code {
    font-weight: 800;
    font-size: 18px;
    color: var(--fintech-secondary);
}

.currency-name {
    font-size: 12px;
    color: var(--fintech-slate-500);
    display: block;
}

.currency-amount-input {
    border: none;
    background: transparent;
    text-align: right;
    font-size: 26px;
    font-weight: 800;
    color: var(--fintech-secondary);
    width: 150px;
    outline: none;
}

/* Beautiful dynamic card hover effect styles */
.gradient-accent-line {
    height: 4px;
    width: 50px;
    background: linear-gradient(90deg, var(--fintech-primary) 0%, var(--fintech-accent) 100%);
    border-radius: 50px;
    margin-bottom: 20px;
    transition: width 0.3s ease;
}

.glass-panel:hover .gradient-accent-line {
    width: 100px;
}

/* --- Premium Interactive Responsive UI layout classes --- */
@media (max-width: 991px) {
    .fintech-title-wrap h2 {
        font-size: 36px;
    }
    .calculator-results-screen {
        margin-top: 30px;
    }
}

@media (max-width: 575px) {
    .fintech-title-wrap h2 {
        font-size: 30px;
    }
    .fintech-timeline {
        padding-left: 35px;
    }
    .fintech-timeline::before {
        left: 11px;
    }
    .fintech-timeline-marker {
        left: -35px;
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    .luxury-credit-card {
        width: 100%;
        height: 200px;
        padding: 20px;
    }
    .card-number {
        font-size: 18px;
        margin: 10px 0;
    }
}

/* Page Title Mobile Responsiveness Override */
@media (max-width: 767px) {
    .page-title {
        padding-top: 100px !important;
        padding-bottom: 80px !important;
    }
    .page-title h2 {
        font-size: 38px !important;
        letter-spacing: -1px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }
    .page-title h6 {
        font-size: 11px !important;
        letter-spacing: 3px !important;
        margin-bottom: 15px !important;
    }
    .page-title .bread-crumb {
        padding: 10px 25px !important;
        font-size: 13px !important;
    }
}

