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

:root {
    --bg-primary: #050814;
    --bg-secondary: #0c0f1d;
    --bg-card: rgba(10, 15, 30, 0.7);
    --border-glass: rgba(0, 240, 255, 0.15);
    --border-glow: rgba(0, 240, 255, 0.4);
    
    --color-primary: #00f0ff;
    --color-primary-dark: #0072ff;
    --color-secondary: #bd00ff;
    --color-accent: #ff007a;
    --color-emerald: #00ff66;
    --color-amber: #eab308;
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    
    --grad-primary: linear-gradient(135deg, #00f0ff 0%, #7000ff 100%);
    --grad-primary-hover: linear-gradient(135deg, #33f3ff 0%, #8b33ff 100%);
    --grad-success: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    --grad-danger: linear-gradient(135deg, #ff0055 0%, #ff5000 100%);
    --grad-dark: linear-gradient(135deg, #0b0f19 0%, #020408 100%);
    --grad-glow: 0 0 25px rgba(0, 240, 255, 0.25);
    
    --font-main: 'Outfit', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary) var(--bg-secondary);
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
*::-webkit-scrollbar-thumb {
    background-color: var(--color-secondary);
    border-radius: 10px;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 10% 10%, rgba(0, 240, 255, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(189, 0, 255, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 90%, rgba(0, 255, 102, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Slide Deck Progress Indicator at Top */
.slide-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    z-index: 1001;
    transition: width 0.4s ease;
}

.app-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 24px 120px 24px;
    flex: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 24px;
}

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

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--grad-glow);
    font-size: 20px;
    color: #000000;
    font-weight: 800;
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo h1 span {
    font-weight: 300;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

/* Slide Info Banner */
.slide-banner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.slide-banner i {
    font-size: 18px;
    color: #ffffff;
}

/* Presentation Slide Deck Wrapper */
.slide-view {
    display: none;
    animation: slideFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-view.active {
    display: block;
}

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

/* Slide Deck Nav Controllers */
.slide-navigation {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.05);
    width: max-content;
    max-width: 95%;
}

.slide-nav-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.slide-nav-btn:hover:not(:disabled) {
    background: #ffffff;
    color: #000000;
}

.slide-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slide-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slide-dot.active {
    background: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 0 8px #ffffff;
}

.slide-counter {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 80px;
    text-align: center;
}

/* Typography */
h2, h3, h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.text-white { color: #ffffff !important; }
.text-gray { color: #888888 !important; }

/* Cards & Layout */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.7);
}

.card.highlight::before {
    background: var(--grad-primary);
}

.card.accent::before {
    background: var(--color-secondary);
}

.card.success::before {
    background: #ffffff;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.grid-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

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

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

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-control {
    width: 100%;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 400;
    transition: var(--transition);
    outline: none;
}

.input-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--border-glow);
    background: #000000;
}

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

select.input-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 40px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    pointer-events: none;
}

.input-group .input-control {
    padding-left: 45px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--grad-primary);
    color: #000000;
    box-shadow: var(--grad-glow);
}

.btn-primary:hover {
    background: var(--grad-primary-hover);
    color: #000000;
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.12);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: var(--grad-danger);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-danger:hover {
    background: #333333;
    border-color: #ffffff;
}

.btn-success {
    background: #ffffff;
    color: #000000;
}

.btn-success:hover {
    background: #e0e0e0;
}

.btn-icon-only {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: capitalize;
}

.badge-primary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-success {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid #ffffff;
}

.badge-danger {
    background: rgba(0, 0, 0, 0.4);
    color: #888888;
    border: 1px solid #555555;
}

/* Split Bill Styles */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #000000;
    background: #ffffff;
    border: 2px solid var(--bg-secondary);
    text-transform: uppercase;
}

.avatar-large {
    width: 48px;
    height: 48px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.balance-large {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
    margin: 8px 0;
}

.member-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.btn-remove-member {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
}

.btn-remove-member:hover {
    color: #ffffff;
}

.bill-table-container {
    overflow-x: auto;
    margin-top: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    background: rgba(10, 10, 10, 0.4);
}

.bill-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.bill-table th, .bill-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.bill-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.alloc-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.alloc-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #000000;
    background: #444444;
    cursor: pointer;
    transition: var(--transition);
}

.alloc-avatar.selected {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 8px #ffffff;
}

.split-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.split-result-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.split-result-row.current-user {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

/* Savings progress bar */
.savings-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 8px 0;
    border: 1px solid var(--border-glass);
}

.savings-fill {
    height: 100%;
    background: linear-gradient(90deg, #555555 0%, #ffffff 100%);
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-container {
    position: relative;
    height: 220px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Transaction Item UI */
.transaction-list-scroll {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.trans-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trans-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255,255,255,0.05);
    color: #ffffff;
}

.trans-text h4 {
    margin-bottom: 2px;
    font-size: 14px;
}

.trans-text span {
    font-size: 12px;
    color: var(--text-secondary);
}

.trans-amount {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.trans-value {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
}

.btn-delete-trans {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
}

.btn-delete-trans:hover {
    color: #ffffff;
}

/* AI health meter */
.health-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 0;
}

.health-gauge {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.gauge-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    mask: radial-gradient(circle, transparent 65%, black 66%);
    -webkit-mask: radial-gradient(circle, transparent 65%, black 66%);
}

.gauge-value {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
}

.gauge-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.ai-recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-rec-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-left: 4px solid #ffffff;
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    gap: 16px;
}

.ai-rec-card.warning { border-left-color: #888888; }
.ai-rec-card.danger { border-left-color: #333333; }
.ai-rec-card.success { border-left-color: #ffffff; }

.ai-rec-icon {
    font-size: 20px;
    margin-top: 2px;
}

.ai-rec-content h4 { margin-bottom: 4px; font-size: 15px; }
.ai-rec-content p { font-size: 13px; }

/* Interactive Chatbot widget */
.ai-chatbot-card {
    display: flex;
    flex-direction: column;
    height: 480px;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.5;
}

.chat-bubble.bot {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-bubble.user {
    background: #ffffff;
    color: #000000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.chat-suggested-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.suggested-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.suggested-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.chat-input-area {
    display: flex;
    gap: 8px;
}

/* Modals styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 480px;
    max-width: 90%;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
}

/* ========================================================
   NEW WIDGETS SPECIFIC STYLES
   ======================================================== */

/* Robot Visual SVG animations */
.robot-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
}

.robot-svg {
    width: 130px;
    height: 130px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.robot-svg:hover {
    transform: scale(1.08) rotate(1deg);
}

.robot-svg:active {
    transform: scale(0.95);
}

.robot-eye {
    fill: #ffffff;
    transition: all 0.2s ease;
}

.robot-eye.happy {
    d: path("M 10,20 Q 20,10 30,20");
    stroke: #ffffff;
    stroke-width: 4;
    fill: none;
}

.robot-antenna {
    fill: #888888;
    transition: fill 0.3s ease;
}

.robot-antenna.glow {
    fill: #ffffff;
    filter: drop-shadow(0 0 6px #ffffff);
}

.voice-control-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.voice-status-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.voice-status-badge.active {
    color: #000000;
    background: #ffffff;
    border-color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

/* Paylater limit widget */
.paylater-gauge-container {
    padding: 16px 0;
    text-align: center;
}

.paylater-limit-bar {
    height: 12px;
    background: #222222;
    border-radius: 6px;
    overflow: hidden;
    margin: 12px 0;
    border: 1px solid var(--border-glass);
}

.paylater-limit-fill {
    height: 100%;
    background: #ffffff;
    width: 0%;
    transition: width 0.8s ease;
}

.paylater-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

/* Fintech Investment styles */
.investment-portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.investment-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.investment-card:hover {
    background: rgba(255,255,255,0.04);
}

.investment-trend {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    color: #ffffff;
    text-decoration: underline;
}

/* Gamification components */
.xp-hud-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(40, 40, 40, 0.4) 100%);
    border: 1px solid var(--border-glass);
}

.level-badge {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.level-badge span {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.7;
}

.level-badge strong {
    font-size: 20px;
}

.xp-progress-bar {
    height: 8px;
    background: #222222;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.xp-progress-fill {
    height: 100%;
    background: #ffffff;
    width: 0%;
    transition: width 0.5s ease;
}

.quests-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quest-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quest-item.completed {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.05);
}

.quest-item.completed h5 {
    text-decoration: line-through;
    color: var(--text-muted);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.badge-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.badge-item.locked {
    opacity: 0.35;
    filter: grayscale(1);
}

.badge-item i {
    font-size: 28px;
    color: #ffffff;
}

.badge-item span {
    font-size: 11px;
    font-weight: 600;
    display: block;
}

/* Social Share Card mockup */
.share-preview-card {
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.share-preview-card::after {
    content: 'SPLITSYNC SMART FINANCES';
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Floating Particles (Neon Tech) */
.blur-spot {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
}

.spot-1 {
    top: 15%;
    left: -80px;
    background: #00f0ff;
}

.spot-2 {
    bottom: 25%;
    right: -80px;
    background: #bd00ff;
}

/* Keyboard Hints */
.kbd-hint {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Mobile responsive fixes */
@media (max-width: 1024px) {
    .grid-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .paylater-actions {
        grid-template-columns: 1fr;
    }
    .slide-navigation {
        bottom: 12px;
        width: 95%;
        padding: 8px 16px;
        gap: 12px;
    }
}

/* ==========================================
   APP PERSISTENT NAVBAR (TOP)
   ========================================== */
.app-navbar {
    display: flex;
    gap: 8px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 6px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
}
.app-navbar::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.app-navbar .nav-item {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.app-navbar .nav-item i {
    font-size: 14px;
}
.app-navbar .nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass);
}
.app-navbar .nav-item.active {
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--color-primary);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

/* ==========================================
   SLIDE 1: HOME PAGE / INTRO SECTION
   ========================================== */
.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-primary);
}
.home-hero-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-secondary);
}
.home-hero-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.home-hero-title span {
    font-weight: 300;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}
.home-hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 30px;
    line-height: 1.6;
}
.home-cta-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid #ffffff;
}
.home-cta-btn.primary {
    background: #ffffff;
    color: #000000;
}
.home-cta-btn.primary:hover {
    background: transparent;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.home-features-section {
    margin-bottom: 40px;
}
.home-section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
.home-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.home-feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.home-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.05);
}
.home-feature-icon {
    font-size: 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: var(--transition);
}
.home-feature-card:hover .home-feature-icon {
    background: #ffffff;
    color: #000000;
}
.home-feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.home-feature-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 16px;
}
.home-feature-link {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.home-feature-link i {
    transition: var(--transition);
}
.home-feature-card:hover .home-feature-link i {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .home-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .home-features-grid {
        grid-template-columns: 1fr;
    }
    .home-hero-title {
        font-size: 32px;
    }
    .home-hero-desc {
        font-size: 15px;
    }
}

/* Hide top header slide counter badge */
#slide-header-badge {
    display: none !important;
}

/* Hide bottom slide navigation */
.slide-navigation {
    display: none !important;
}

/* ==========================================
   ONBOARDING / WELCOME PORTAL STYLES
   ========================================== */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #050814;
    background-image: 
        radial-gradient(at 10% 10%, rgba(0, 240, 255, 0.12) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(189, 0, 255, 0.08) 0px, transparent 50%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}
.onboarding-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.onboarding-card {
    background: rgba(12, 15, 29, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: onboardingFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes onboardingFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.onboarding-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}
.onboarding-logo h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 0;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.onboarding-logo h1 span {
    font-weight: 300;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}
.onboarding-card h2 {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.onboarding-card p {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}
.onboarding-submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}


