:root {
    --bg-main: #ffffff;
    --bg-surface: #f4f5f7;
    --bg-header: #000000;
    --bg-dark: #111111;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-light: #ffffff;
    --text-muted: #888888;
    --accent: #2563EB; /* Royal Blue */
    --accent-hover: #1D4ED8;
    --success: #059669; /* Emerald */
    --danger: #dc2626;
    --border: #eaeaec;
    --border-dark: #222222;
    --radius: 16px; 
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    --shadow-heavy: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.hidden { display: none !important; }

/* -------------------------------------------
   NAVBAR
------------------------------------------- */
.nav-revolut {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-name-revolut {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #000;
}
.nav-links-revolut { display: flex; gap: 2.5rem; }
.nav-link-r {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}
.nav-link-r:hover { color: #000; }
.nav-actions-revolut { display: flex; align-items: center; gap: 1.5rem; }
.login-r { color: #000; }

.btn-r {
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-r:hover { transform: translateY(-2px); }
.btn-r:active { transform: translateY(0); }
.primary-r { background: #000; color: #fff; }
.primary-r:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.secondary-r { background: #f0f0f0; color: #000; }
.secondary-r:hover { background: #e0e0e0; }
.large-r { padding: 1.2rem 2.5rem; font-size: 1.1rem; }
.huge-r { padding: 1.5rem 4rem; font-size: 1.3rem; }

/* -------------------------------------------
   HERO
------------------------------------------- */
.hero-revolut {
    padding: 12rem 2rem 8rem;
    background: #fff;
    text-align: center;
}
.hero-content-r {
    max-width: 900px;
    margin: 0 auto;
}
.hero-title-r {
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    color: #000;
    margin-bottom: 2rem;
}
.hero-subtitle-r {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto; margin-right: auto;
}
.hero-buttons-r {
    display: flex; justify-content: center; gap: 1rem;
}

/* -------------------------------------------
   FULL WIDTH TRUST BAR (ANIMATED)
------------------------------------------- */
.trust-bar-full {
    background: #000;
    color: #fff;
    padding: 6rem 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    width: 100%;
}
.trust-item {
    text-align: center;
}
.trust-val {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.trust-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* -------------------------------------------
   SECTIONS
------------------------------------------- */
.section-revolut { padding: 8rem 2rem; }
.white-bg { background: #ffffff; }
.grey-bg { background: #f4f5f7; }
.dark-bg { background: #000000; color: #ffffff; }

.container-r { max-width: 1200px; margin: 0 auto; }
.split-r { display: flex; align-items: center; gap: 8rem; }
.reverse-r { flex-direction: row-reverse; }
.text-side-r { flex: 1; }
.image-side-r { flex: 1; position: relative; }

.tag-r {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0,0,0,0.05);
    color: #000;
    border-radius: 50px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}
.dark-bg .tag-r { background: rgba(255,255,255,0.1); color: #fff; }

.section-title-r {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.section-desc-r {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #555;
}
.dark-bg .section-desc-r { color: #aaa; }

.list-r { list-style: none; }
.list-r li {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.list-r li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 900;
}
.dark-bg .list-r li::before { color: #fff; }

.floating-img-r {
    width: 100%;
    max-width: 100%;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-img-r:hover { transform: scale(1.02) translateY(-10px); }
.premium-shadow { box-shadow: 0 40px 80px rgba(0,0,0,0.5); }

/* -------------------------------------------
   CARDS SECTION (GOLD & VANTA)
------------------------------------------- */
.cards-section { background: #000; color: #fff; padding: 10rem 2rem; }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 4rem;
    margin-top: 5rem;
}
.card-tier {
    background: #111;
    border: 1px solid #222;
    border-radius: 32px;
    padding: 4rem 3rem;
    text-align: left;
    position: relative;
    transition: var(--transition);
}
.card-tier:hover { transform: translateY(-10px); border-color: #333; }
.card-tier-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: 20% center; /* Shift left to hide right artifact */
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.card-tier h3 { font-size: 2.5rem; font-weight: 900; margin-bottom: 0.5rem; }
.tier-gold h3 { color: #F59E0B; }
.tier-vanta h3 { background: linear-gradient(to right, #666, #fff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tier-price { font-size: 3rem; font-weight: 900; margin-bottom: 2rem; }
.tier-price span { font-size: 1.2rem; font-weight: 600; color: #666; }
.tier-features { list-style: none; margin-bottom: 3rem; }
.tier-features li { margin-bottom: 1.2rem; display: flex; align-items: center; gap: 15px; color: #ccc; font-size: 1.1rem; }
.tier-features li::before { content: '✦'; color: #555; }

/* -------------------------------------------
   RSE SECTION WITH IMAGES
------------------------------------------- */
.rse-section { padding: 8rem 2rem; background: #fff; text-align: center; }
.rse-image-banner {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    object-fit: cover;
    border-radius: 32px;
    margin: 4rem auto;
    box-shadow: var(--shadow-heavy);
}
.rse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}
.rse-title { font-weight: 900; font-size: 1.5rem; margin-bottom: 1rem; }
.rse-desc { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.6; }

/* -------------------------------------------
   REVIEWS
------------------------------------------- */
.reviews-section { background: var(--bg-surface); padding: 8rem 2rem; text-align: center; }
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto; margin-right: auto;
}
.review-card {
    background: #fff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-align: left;
}
.review-stars { color: #111; font-size: 1.5rem; margin-bottom: 1.5rem; letter-spacing: 2px; }
.review-text { font-size: 1.2rem; line-height: 1.6; color: #333; margin-bottom: 2rem; font-weight: 500; }
.review-author { font-weight: 800; font-size: 1rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }

/* -------------------------------------------
   CTA & LEGAL FOOTER
------------------------------------------- */
.cta-section-r { padding: 12rem 2rem; background: #fff; text-align: center; }
.cta-section-r .section-title-r { font-size: 5rem; margin-bottom: 3rem; }

.legal-footer {
    background: #f4f5f7;
    padding: 6rem 2rem;
    font-size: 11px;
    color: #888;
    line-height: 1.6;
    text-align: justify;
    border-top: 1px solid #e0e0e0;
}
.legal-footer-container { max-width: 1200px; margin: 0 auto; }
.legal-footer p { margin-bottom: 1.5rem; }

@media (max-width: 1024px) {
    .split-r, .reverse-r { flex-direction: column; text-align: center; gap: 4rem; }
    .hero-title-r { font-size: 4rem; }
    .section-title-r { font-size: 3rem; }
    .nav-links-revolut { display: none; }
    .list-r li { justify-content: center; }
    .cards-grid { grid-template-columns: 1fr; }
    .rse-grid { grid-template-columns: 1fr; }
    .trust-bar-full { flex-direction: column; gap: 2rem; }
}

@media (max-width: 768px) {
    .container-r { padding: 0 1rem; }
    .hero-revolut { padding: 8rem 1rem 4rem; }
    .hero-title-r { font-size: 2.8rem; letter-spacing: -1px; }
    .hero-subtitle-r { font-size: 1rem; padding: 0 0.5rem; }
    .hero-buttons-r { flex-direction: column; width: 100%; padding: 0; margin-top: 2rem; }
    .hero-buttons-r .btn-r { width: 100%; text-align: center; margin-bottom: 1rem; }
    .section-title-r { font-size: 2rem; padding: 0 0.5rem; }
    .section-desc-r { font-size: 1rem; padding: 0 0.5rem; }
    .trust-val { font-size: 3rem; }
    .trust-label { font-size: 0.9rem; }
    .card-tier { padding: 2rem 1rem; }
    .review-card { padding: 1.5rem; }
    .rse-image-banner { height: 200px; }
    .split-r, .reverse-r { gap: 2rem; }
}

/* -------------------------------------------
   AUTH PAGES
------------------------------------------- */
.auth-layout {
    display: flex;
    min-height: 100vh;
    background: #fff;
}
.auth-left {
    flex: 1;
    background: #000;
    color: #fff;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-left::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(37,99,235,0.15) 0%, transparent 60%);
    z-index: 0;
}
.auth-left-content { position: relative; z-index: 1; }
.auth-left h1 { font-size: 3rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 1rem; line-height: 1.1; }
.auth-left p { font-size: 1.2rem; color: #888; }
.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: #fff;
}
.auth-form-container {
    width: 100%;
    max-width: 400px;
}
.auth-form-container h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}
.pwd-strength { height: 4px; background: #eee; margin-top: 5px; border-radius: 2px; overflow: hidden; }
.pwd-strength-bar { height: 100%; width: 0; background: var(--danger); transition: 0.3s; }
@media (max-width: 768px) {
    .auth-left { display: none; }
}

.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-secondary); }
input[type="text"], input[type="password"], input[type="number"], select.form-select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fcfcfc;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, select.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
    background: #fff;
}

/* App Dashboard */
.app-header { background-color: var(--bg-header); color: var(--text-light); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.brand-name-app { font-weight: 900; font-size: 1.5rem; color: var(--text-light); }
.balance-display { font-size: 1.2rem; font-weight: 800; color: #fff; margin-right: 2rem; }
.container { padding: 2rem; max-width: 100%; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 2rem; }
.panel { background: #ffffff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.panel-header { background: #ffffff; border-bottom: 1px solid var(--border); padding: 1.5rem; font-weight: 800; font-size: 14px; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.panel-body { padding: 2rem; }
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background-color: #f8f9fa; color: var(--text-secondary); padding: 1rem 1.5rem; text-align: left; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); color: var(--text-primary); font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #f8f9fa; }
.search-box { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.stock-info { border: 1px solid var(--border); border-radius: 8px; padding: 2rem; background: var(--bg-surface); }
#stock-price { font-size: 3rem; font-weight: 900; color: var(--text-primary); letter-spacing: -1px; }
.trade-actions { display: flex; gap: 1rem; margin-top: 2rem; }
.trade-actions input { width: 100px; }

/* Loader */
#loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.98); z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.spinner { width: 50px; height: 50px; border: 4px solid var(--border); border-top-color: #000; border-radius: 50%; animation: spin 0.8s ease infinite; margin-bottom: 2rem; }
#loading-text { font-weight: 700; color: #000; font-size: 18px; }
.success-checkmark { width: 60px; height: 60px; background: var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
.success-checkmark::after { content: ''; width: 14px; height: 26px; border: solid white; border-width: 0 4px 4px 0; transform: rotate(45deg) translate(-1px, -2px); }
.error-cross { width: 60px; height: 60px; background: var(--danger); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
.error-cross::after { content: '✕'; color: white; font-size: 30px; font-weight: bold; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast-notification {
    background: #000;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--danger);
}
.toast-notification.toast-show {
    transform: translateX(0);
}
.toast-icon { font-size: 18px; }

/* Password eye toggle */
.pwd-wrapper { position: relative; }
.pwd-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.pwd-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: transform 0.2s ease, stroke 0.2s ease;
}
.pwd-toggle:hover svg {
    stroke: #333;
    transform: scale(1.1);
}
.pwd-toggle.active svg {
    stroke: var(--accent);
}
