/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #050505;
    --bg-card: #121212;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-green: #22c55e;
    --accent-green-dim: rgba(34, 197, 94, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   LANDING PAGE STYLES (index.html & setup.html)
   ======================================== */
.landing-theme {
    background: #050505;
}

.landing-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Landing Header */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 32px;
}

.landing-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-outline {
    background: transparent;
    border: 2px solid #00FF41;
    color: #00FF41;
}

.badge-filled {
    background: #00FF41;
    border: 2px solid #00FF41;
    color: #050505;
}

/* Landing Hero */
.landing-hero {
    text-align: center;
    padding: 40px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-heading {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

@media (max-width: 400px) {
    .hero-heading {
        font-size: 26px;
    }
}

.hero-subtext {
    font-size: 16px;
    color: #888888;
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 300px;
}

/* Start Button */
.start-btn {
    display: inline-block;
    padding: 20px 48px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    background: #00FF41;
    color: #050505;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: startBtnPulse 2s infinite;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
}

.start-btn:hover {
    background: #00cc33;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.6);
    transform: scale(1.05);
}

@keyframes startBtnPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 255, 65, 0.7);
    }
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.feature-card {
    background: #121212;
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    border: 1px solid rgba(0, 255, 65, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(0, 255, 65, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    min-height: 40px;
}

.feature-text {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

/* Setup Page Content */
.setup-content {
    text-align: center;
    padding: 40px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.setup-heading {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

@media (max-width: 400px) {
    .setup-heading {
        font-size: 24px;
    }
}

.setup-subtext {
    font-size: 15px;
    color: #888888;
    line-height: 1.5;
    margin-bottom: 40px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #121212;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00FF41 0%, #00cc33 100%);
    width: 0%;
    border-radius: 10px;
    transition: width 0.1s linear;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.progress-percent {
    font-size: 14px;
    font-weight: 700;
    color: #00FF41;
    text-align: right;
}

/* Steps List */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #121212;
    border-radius: 12px;
    opacity: 0.3;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.step-item.active {
    opacity: 1;
    border-color: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 255, 65, 0.2);
    border: 2px solid #00FF41;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #00FF41;
    flex-shrink: 0;
}

.step-text {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

/* ========================================
   MOBILE MONEY THEME CONTAINER
   ======================================== */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 100px;
}

/* ========================================
   SECTION A: HEADER
   ======================================== */
.app-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-logo svg {
    flex-shrink: 0;
}

/* ========================================
   CARD BASE STYLES
   ======================================== */
.card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

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

.card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.badge-positive {
    background: var(--accent-green-dim);
    color: var(--accent-green);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* ========================================
   SECTION B: HERO CARD (MONTHLY)
   ======================================== */
.hero-card {
    padding: 24px;
}

.hero-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1.1;
    letter-spacing: -1px;
}

@media (max-width: 380px) {
    .hero-value {
        font-size: 36px;
    }
}

/* ========================================
   SECTION C: GRID ROW
   ======================================== */
.grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.grid-card {
    padding: 18px;
}

.grid-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-green);
    margin-top: 8px;
    line-height: 1.2;
}

@media (max-width: 380px) {
    .grid-value {
        font-size: 22px;
    }
}

/* ========================================
   SECTION D: GRAPH CARD
   ======================================== */
.graph-card {
    padding: 20px;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 140px;
    margin-top: 16px;
    gap: 6px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, #22c55e 0%, rgba(34, 197, 94, 0.3) 100%);
    border-radius: 6px 6px 3px 3px;
    min-height: 8px;
    height: 0%;
    transition: height 0.6s ease-out;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

/* ========================================
   SECTION E: WITHDRAW BUTTON
   ======================================== */
.withdraw-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    background: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.withdraw-btn:hover {
    background: var(--accent-green-dim);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
    transform: translateY(-1px);
}

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

/* ========================================
   MODAL STYLES
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: modalSlideUp 0.3s ease;
}

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

.modal-header {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.modal-body {
    margin-bottom: 24px;
}

.modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-row:last-child {
    border-bottom: none;
}

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

.modal-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.modal-amount-row {
    padding: 18px 0;
    margin-top: 8px;
}

.modal-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-green);
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

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

.confirm-btn {
    background: var(--accent-green);
    color: var(--bg-primary);
}

.confirm-btn:hover {
    background: #16a34a;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

/* Success Modal */
.success-modal {
    text-align: center;
    padding: 36px 28px;
}

.success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.success-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.success-message {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 400px) {
    .app-container {
        padding: 12px;
    }

    .card {
        padding: 16px;
    }

    .hero-card {
        padding: 20px;
    }

    .grid-card {
        padding: 16px;
    }

    .chart-container {
        height: 120px;
    }
}

/* ========================================
   BANK APP THEME STYLES (PRESERVED)
   ======================================== */
.bank-theme {
    background: #f5f5f5;
    color: #333;
}

/* Biometric Overlay */
.biometric-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.8s ease;
}

.biometric-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.fingerprint-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.fingerprint-icon {
    width: 80px;
    height: 80px;
    color: #00d4ff;
    position: relative;
    z-index: 2;
}

.fingerprint-icon svg {
    width: 100%;
    height: 100%;
}

.fingerprint-ripple {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid #00d4ff;
    border-radius: 50%;
    animation: ripple 2s infinite;
}

.fingerprint-ripple-2 {
    animation-delay: 0.5s;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.biometric-text {
    color: #00d4ff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Bank Screen */
.bank-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bank-header {
    background: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.bank-name {
    font-size: 14px;
    font-weight: bold;
    color: #003366;
}

.bank-menu {
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

/* Transaction Container */
.transaction-container {
    flex: 1;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.transaction-header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.transaction-title {
    font-size: 20px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 8px;
}

.transaction-date {
    font-size: 14px;
    color: #666;
}

.amount-section {
    background: linear-gradient(135deg, #003366 0%, #004d99 100%);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.3);
}

.amount-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.amount-value {
    font-size: 42px;
    font-weight: bold;
    color: white;
    line-height: 1.2;
}

@media (max-width: 400px) {
    .amount-value {
        font-size: 32px;
    }
}

.final-amount {
    display: none;
}

/* Transaction Details List */
.transaction-details-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
    font-size: 14px;
}

.detail-value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.status-complete {
    color: #27ca40;
    font-weight: bold;
}

/* ========================================
   HACKER THEME STYLES (PRESERVED FOR QUALIFY)
   ======================================== */
.hacker-theme {
    background: #050505;
    color: #00ff00;
}

.terminal-box {
    background: #0a0a0a;
    border: 2px solid #00ff00;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.terminal-header {
    background: #0f0f0f;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #00ff00;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
    color: #00ff00;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.terminal-content {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    min-height: 200px;
}

.terminal-line {
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.terminal-line::before {
    content: '> ';
    color: #00ff00;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.money-machine-btn {
    width: 100%;
    padding: 25px;
    font-size: 24px;
    font-weight: bold;
    background: transparent;
    border: 3px solid #00ff00;
    color: #00ff00;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: pulse 1.5s infinite;
    transition: all 0.3s;
}

.money-machine-btn:hover {
    background: #00ff00;
    color: #050505;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 0, 0.8);
        transform: scale(1.02);
    }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}
