/* ═══════════════════════════════════════
   PRESTIGE ALLIANCE BANKING - ENHANCED
   Fully Responsive for All Devices
═══════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #2563eb;
    --accent-blue: #3b82f6;
    --red: #b91c1c;
    --green: #16a34a;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */

.navbar {
    background: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dashboard-nav {
    background: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: clamp(35px, 5vw, 40px);
    height: clamp(35px, 5vw, 40px);
    background: linear-gradient(135deg, var(--primary-blue), var(--red));
    border-radius: 8px;
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-text {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-blue);
}

.btn-login-mobile {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white !important;
    text-align: center;
    margin-top: 0.5rem;
}

.menu-btn {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: 0.3s;
}

.user-profile {
    width: clamp(40px, 6vw, 45px);
    height: clamp(40px, 6vw, 45px);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════ */

.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding: clamp(3rem, 8vw, 6rem) 0;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: clamp(12px, 2.5vw, 14px) clamp(20px, 4vw, 32px);
    border-radius: 10px;
    font-weight: 600;
    font-size: clamp(0.95rem, 1.8vw, 1rem);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

.btn-outline {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.trust-badges {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.85rem, 1.6vw, 0.9rem);
    color: var(--text-gray);
}

.badge-icon {
    font-size: 1.5rem;
}

/* Hero Image with Floating Cards */
.hero-image {
    position: relative;
    height: clamp(400px, 50vw, 500px);
    animation: fadeInRight 0.8s ease;
}

.floating-card {
    position: absolute;
    background: white;
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: 5%;
    width: clamp(200px, 35vw, 280px);
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    width: clamp(180px, 30vw, 240px);
    animation-delay: 1s;
}

.card-3 {
    bottom: 15%;
    left: 15%;
    width: clamp(160px, 28vw, 220px);
    animation-delay: 2s;
}

.card-label {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.card-amount {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-blue);
}

.card-subtitle {
    font-size: clamp(0.75rem, 1.4vw, 0.8rem);
    color: var(--green);
    margin-top: 0.3rem;
}

.card-detail {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-weight: 600;
    color: var(--green);
}

.card-time {
    font-size: clamp(0.75rem, 1.4vw, 0.8rem);
    color: var(--text-gray);
    margin-top: 0.3rem;
}

.card-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-value {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-weight: 700;
    color: var(--text-dark);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════
   FEATURES SECTION
═══════════════════════════════════════ */

.features {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.feature-card {
    background: var(--light-bg);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.feature-icon {
    font-size: clamp(2.5rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
}

/* ═══════════════════════════════════════
   STATS SECTION
═══════════════════════════════════════ */

.stats-section {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(1rem, 2vw, 1.1rem);
    opacity: 0.9;
}

/* ═══════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════ */

.cta-section {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: var(--light-bg);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-section p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */

.footer {
    background: var(--text-dark);
    color: white;
    padding: clamp(2rem, 5vw, 3rem) 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
    line-height: 1.6;
    margin-top: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.85rem, 1.6vw, 0.9rem);
}

/* ═══════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════ */

.login-page {
    background: var(--light-bg);
    min-height: 100vh;
}

.login-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) clamp(20px, 4vw, 40px);
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.login-box {
    background: white;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-gray);
    font-size: clamp(0.95rem, 1.8vw, 1rem);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: clamp(1rem, 2vw, 1.2rem);
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: clamp(12px, 2.5vw, 14px);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: clamp(0.95rem, 1.8vw, 1rem);
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    font-size: 1.3rem;
    user-select: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(0.85rem, 1.6vw, 0.9rem);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.checkbox-label input {
    width: auto;
}

.forgot-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--secondary-blue);
}

.btn-block {
    width: 100%;
}

.divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-gray);
    font-size: clamp(0.85rem, 1.6vw, 0.9rem);
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-social {
    padding: clamp(10px, 2vw, 12px);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-social:hover {
    border-color: var(--primary-blue);
    background: var(--light-bg);
}

.social-icon-letter {
    font-weight: 700;
    font-size: 1.2rem;
}

.signup-link {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-gray);
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
}

.signup-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    color: var(--secondary-blue);
}

/* Login Features */
.login-features {
    background: white;
    padding: clamp(2rem, 4vw, 2.5rem);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.login-features h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.feature-check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.feature-item p {
    font-size: clamp(0.85rem, 1.6vw, 0.9rem);
    color: var(--text-gray);
    line-height: 1.5;
}

/* ═══════════════════════════════════════
   DASHBOARD MAIN
═══════════════════════════════════════ */

.dashboard-page {
    background: var(--light-bg);
    min-height: 100vh;
}

.dashboard-main {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(15px, 3vw, 20px);
    padding-bottom: 100px;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 3vw, 20px);
}

/* ═══════════════════════════════════════
   SUMMARY CARD (Enhanced)
═══════════════════════════════════════ */

.summary-card {
    background: white;
    padding: clamp(1.2rem, 3vw, 1.5rem);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.summary-text {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 2vw, 0.95rem);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 2vw, 12px);
}

.btn-deposit,
.btn-transfer {
    padding: clamp(12px, 2.5vw, 14px);
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-deposit {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

.btn-deposit:active {
    transform: translateY(0);
}

.btn-transfer {
    background: linear-gradient(135deg, #dc2626, var(--red));
    color: white;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}

.btn-transfer:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.4);
}

.btn-transfer:active {
    transform: translateY(0);
}

/* ═══════════════════════════════════════
   BALANCE CARD
═══════════════════════════════════════ */

.overview-section {
    margin-top: clamp(10px, 2vw, 15px);
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-blue), #1e40af);
    color: white;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.balance-header {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: flex-start;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.user-avatar {
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.balance-info {
    flex: 1;
}

.balance-label {
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.balance-amount {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
}

.linked-cards {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: clamp(1rem, 2vw, 1.5rem);
}

.cards-label {
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    opacity: 0.9;
}

/* ═══════════════════════════════════════
   BUSINESS ACCOUNT
═══════════════════════════════════════ */

.business-section {
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

.transfer-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    float: right;
    transition: color 0.3s;
}

.transfer-link:hover {
    color: var(--secondary-blue);
}

.account-card {
    background: white;
    padding: clamp(1.2rem, 2.5vw, 1.5rem);
    border-radius: 16px;
    margin-top: 1rem;
    box-shadow: var(--shadow);
    clear: both;
}

.account-info {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 16px);
}

.account-icon {
    width: clamp(45px, 7vw, 50px);
    height: clamp(45px, 7vw, 50px);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    flex-shrink: 0;
}

.account-details {
    flex: 1;
}

.account-number {
    color: var(--text-gray);
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    margin-bottom: 0.3rem;
}

.account-balance {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--text-dark);
}

.currency-label {
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    color: var(--text-gray);
    font-weight: 400;
}

/* ═══════════════════════════════════════
   QUICK ACTIONS
═══════════════════════════════════════ */

.quick-actions {
    margin-top: clamp(1.5rem, 3vw, 2rem);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 2vw, 12px);
}

.action-btn {
    background: white;
    padding: clamp(0.9rem, 2vw, 1rem);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1vw, 8px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    min-height: clamp(80px, 15vw, 95px);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.action-btn:active {
    transform: translateY(0);
}

.action-icon {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
}

.action-btn span:last-child {
    font-size: clamp(0.8rem, 1.5vw, 0.85rem);
    font-weight: 600;
    color: var(--text-dark);
}

/* ═══════════════════════════════════════
   TRANSACTIONS
═══════════════════════════════════════ */

.transactions-section {
    margin-top: clamp(1.5rem, 3vw, 2rem);
    background: white;
    padding: clamp(1.2rem, 2.5vw, 1.5rem);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.view-all {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--secondary-blue);
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 12px);
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 12px);
    padding: clamp(0.9rem, 2vw, 1rem);
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.2s;
}

.transaction-item:hover {
    background: #e2e8f0;
}

.transaction-icon {
    width: clamp(35px, 6vw, 40px);
    height: clamp(35px, 6vw, 40px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    flex-shrink: 0;
}

.transaction-icon.incoming {
    background: #dcfce7;
    color: var(--green);
}

.transaction-icon.outgoing {
    background: #fee2e2;
    color: #dc2626;
}

.transaction-details {
    flex: 1;
    min-width: 0;
}

.transaction-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-dark);
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
}

.transaction-date {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: var(--text-gray);
}

.transaction-amount {
    font-weight: 700;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    white-space: nowrap;
}

.transaction-amount.positive {
    color: var(--green);
}

.transaction-amount.negative {
    color: #dc2626;
}

/* ═══════════════════════════════════════
   FORM PAGES (Deposit, Transfer)
═══════════════════════════════════════ */

.page-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-gray);
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: clamp(1.2rem, 2.5vw, 1.5rem);
}

.info-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: clamp(1.3rem, 2.5vw, 1.5rem);
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.info-label {
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.info-amount {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
}

.transaction-form {
    background: white;
    padding: clamp(1.3rem, 2.5vw, 1.5rem);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    font-weight: 600;
    color: var(--text-gray);
    font-size: clamp(0.95rem, 1.8vw, 1rem);
}

.input-with-icon input {
    padding-left: 35px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.transfer-summary {
    background: var(--light-bg);
    padding: clamp(1rem, 2vw, 1.2rem);
    border-radius: 12px;
    margin: clamp(1rem, 2vw, 1.2rem) 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
}

.summary-total {
    border-top: 2px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-dark);
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 2vw, 12px);
    margin-top: clamp(1rem, 2vw, 1.2rem);
}

/* Recent section */
.recent-section {
    background: white;
    padding: clamp(1.2rem, 2.5vw, 1.5rem);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.recent-section h3 {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.mini-transactions {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 12px);
}

.mini-transaction {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 12px);
    padding: clamp(0.8rem, 1.8vw, 1rem);
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.2s;
}

.mini-transaction.clickable {
    cursor: pointer;
}

.mini-transaction.clickable:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.recipient-avatar {
    width: clamp(35px, 6vw, 40px);
    height: clamp(35px, 6vw, 40px);
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    flex-shrink: 0;
}

.mini-transaction-info {
    flex: 1;
    min-width: 0;
}

.mini-transaction-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: clamp(0.85rem, 1.6vw, 0.9rem);
    color: var(--text-dark);
}

.mini-transaction-date {
    font-size: clamp(0.75rem, 1.4vw, 0.8rem);
    color: var(--text-gray);
}

.mini-transaction-amount {
    font-weight: 700;
    color: var(--green);
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
}

.mini-transaction-arrow {
    font-size: clamp(1.2rem, 2vw, 1.3rem);
    color: var(--text-gray);
}

/* ═══════════════════════════════════════
   BOTTOM NAVIGATION
═══════════════════════════════════════ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: clamp(10px, 1.5vw, 12px) 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--text-gray);
    transition: all 0.3s;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
}

.nav-item.active {
    color: var(--primary-blue);
    background: rgba(30, 58, 138, 0.08);
}

.nav-icon {
    font-size: clamp(1.2rem, 3vw, 1.3rem);
}

.nav-label {
    font-size: clamp(0.7rem, 1.4vw, 0.75rem);
    font-weight: 500;
}

/* ═══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════ */

/* Tablets and below */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        display: none;
    }

    .trust-badges {
        justify-content: center;
    }

    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-features {
        order: 2;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .dashboard-main {
        padding: 12px;
        padding-bottom: 90px;
    }

    .balance-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .user-avatar {
        margin-bottom: 0.5rem;
    }

    .form-actions {
        grid-template-columns: 1fr;
    }

    .social-login {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .action-btn span:last-child {
        font-size: 0.7rem;
    }

    .actions-grid {
        gap: 8px;
    }

    .stat-item {
        padding: 1rem 0.5rem;
    }
}

/* ═══════════════════════════════════════
   ACCOUNT HOLD & ALERT COMPONENTS
═══════════════════════════════════════ */

/* Shared base for both alert types */
.alert-danger,
.alert-warning {
    display: flex;
    gap: 1rem;
    padding: clamp(1rem, 2.5vw, 1.4rem);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    animation: alertSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animated left-edge accent bar */
.alert-danger::before,
.alert-warning::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 16px 0 0 16px;
    animation: pulseBar 2s ease-in-out infinite;
}

/* ── Danger (Account on Hold) ── */
.alert-danger {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border: 1.5px solid #fca5a5;
    box-shadow:
        0 4px 20px rgba(185, 28, 28, 0.12),
        0 1px 4px rgba(185, 28, 28, 0.08);
}

.alert-danger::before {
    background: linear-gradient(180deg, #dc2626, #b91c1c);
}

/* ── Warning (Outstanding Debt) ── */
.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #fcd34d;
    box-shadow:
        0 4px 20px rgba(217, 119, 6, 0.12),
        0 1px 4px rgba(217, 119, 6, 0.08);
}

.alert-warning::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

/* Alert emoji / icon badge */
.alert-icon {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    flex-shrink: 0;
    width: clamp(48px, 8vw, 56px);
    height: clamp(48px, 8vw, 56px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

.alert-danger .alert-icon {
    background: #fee2e2;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.alert-warning .alert-icon {
    background: #fef3c7;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

/* Alert text block */
.alert-content {
    flex: 1;
    min-width: 0;
}

.alert-content h4 {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: 0.1px;
}

.alert-danger .alert-content h4 {
    color: #991b1b;
}

.alert-warning .alert-content h4 {
    color: #92400e;
}

.alert-content p {
    font-size: clamp(0.85rem, 1.8vw, 0.92rem);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.alert-danger .alert-content p {
    color: #b91c1c;
}

.alert-warning .alert-content p {
    color: #b45309;
}

/* Button row inside alert */
.alert-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

/* Base alert button */
.btn-alert {
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: clamp(0.82rem, 1.6vw, 0.88rem);
    cursor: pointer;
    border: none;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.btn-alert:hover {
    transform: translateY(-2px);
}

.btn-alert:active {
    transform: translateY(0);
}

/* Primary — danger context */
.alert-danger .btn-alert-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 3px 10px rgba(185, 28, 28, 0.35);
}

.alert-danger .btn-alert-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    box-shadow: 0 6px 16px rgba(185, 28, 28, 0.45);
}

/* Primary — warning context */
.alert-warning .btn-alert-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
}

.alert-warning .btn-alert-primary:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.45);
}

/* Outline / ghost button */
.btn-alert-outline {
    background: transparent;
    border: 2px solid currentColor !important;
}

.alert-danger .btn-alert-outline {
    color: #b91c1c;
}

.alert-warning .btn-alert-outline {
    color: #d97706;
}

.btn-alert-outline:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* ── Keyframe animations ── */
@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseBar {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* ── Responsive alerts ── */
@media (max-width: 480px) {
    .alert-danger,
    .alert-warning {
        flex-direction: column;
        gap: 0.75rem;
    }

    .alert-icon {
        width: 46px;
        height: 46px;
        font-size: 1.6rem;
    }

    .alert-actions {
        flex-direction: column;
    }

    .btn-alert {
        width: 100%;
        text-align: center;
        padding: 0.7rem 1rem;
    }
}

/* ═══════════════════════════════════════
   ACCOUNT HOLD — ENHANCED VISUALS
   (all new rules, zero existing lines changed)
═══════════════════════════════════════ */

/* Thicker, more dramatic left bar */
.alert-danger::before {
    width: 6px;
}

.alert-warning::before {
    width: 6px;
}

/* Shimmer sweep across the card on load */
.alert-danger::after,
.alert-warning::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: shimmerSweep 2.2s ease-in-out 0.3s 1 forwards;
    pointer-events: none;
}

/* Pulsing outer glow ring on danger card */
.alert-danger {
    animation: alertSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1),
               dangerPulseGlow 3s ease-in-out 0.5s infinite;
}

/* Icon ring pulse — danger */
.alert-danger .alert-icon {
    animation: iconRing 2.5s ease-in-out infinite;
}

/* Icon ring pulse — warning */
.alert-warning .alert-icon {
    animation: iconRingWarn 2.5s ease-in-out infinite;
}

/* Status badge pill that sits top-right of the alert */
.alert-danger .alert-content h4::after {
    content: '● RESTRICTED';
    display: inline-block;
    margin-left: 10px;
    padding: 2px 9px;
    background: #dc2626;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 20px;
    letter-spacing: 0.8px;
    vertical-align: middle;
    animation: badgeBlink 1.8s ease-in-out infinite;
}

/* Status badge pill — warning */
.alert-warning .alert-content h4::after {
    content: '● ACTION NEEDED';
    display: inline-block;
    margin-left: 10px;
    padding: 2px 9px;
    background: #d97706;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 20px;
    letter-spacing: 0.8px;
    vertical-align: middle;
}

/* Bold the debt amount inside warning paragraph */
.alert-warning .alert-content p strong {
    color: #92400e;
    font-weight: 800;
    font-size: 1.02em;
}

/* Slightly larger, bolder heading */
.alert-danger .alert-content h4,
.alert-warning .alert-content h4 {
    font-size: clamp(1.05rem, 2.4vw, 1.18rem);
    font-weight: 800;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.55rem;
}

/* Upgrade primary CTA button — bigger, bolder */
.alert-danger .btn-alert-primary,
.alert-warning .btn-alert-primary {
    padding: 0.65rem 1.5rem;
    font-size: clamp(0.85rem, 1.7vw, 0.92rem);
    border-radius: 10px;
    letter-spacing: 0.3px;
}

/* Outline button subtle fill on hover */
.alert-danger .btn-alert-outline:hover {
    background: rgba(185, 28, 28, 0.07) !important;
}

.alert-warning .btn-alert-outline:hover {
    background: rgba(217, 119, 6, 0.07) !important;
}

/* ── New keyframes ── */

@keyframes shimmerSweep {
    0%   { background-position: 200% 0; opacity: 1; }
    100% { background-position: -200% 0; opacity: 0; }
}

@keyframes dangerPulseGlow {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(185, 28, 28, 0.12),
            0 1px 4px rgba(185, 28, 28, 0.08);
    }
    50% {
        box-shadow:
            0 6px 28px rgba(185, 28, 28, 0.22),
            0 2px 8px rgba(185, 28, 28, 0.14);
    }
}

@keyframes iconRing {
    0%, 100% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10); }
    50%       { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.18); }
}

@keyframes iconRingWarn {
    0%, 100% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12); }
    50%       { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.22); }
}

@keyframes badgeBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* ── Enhanced responsive (mobile) ── */
@media (max-width: 480px) {
    .alert-danger .alert-content h4,
    .alert-warning .alert-content h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .alert-danger .alert-content h4::after,
    .alert-warning .alert-content h4::after {
        margin-left: 0;
    }
}
/* ═══════════════════════════════════════
   FLOATING LIVE CHAT BUTTON & MODAL
   Fixed position chat bubble with modal
═══════════════════════════════════════ */

/* Floating chat button - bottom right */
.floating-chat-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: chatBounce 2s ease-in-out infinite;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(30, 58, 138, 0.5);
}

.floating-chat-btn:active {
    transform: scale(0.95);
}

/* Notification badge on chat button */
.chat-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #dc2626;
    border-radius: 50%;
    border: 2px solid white;
    font-size: 0.7rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    background: none;
    border: none;
}

.modal-close:hover {
    color: var(--text-dark);
}
/* Live Chat Container */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    max-height: 60vh;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--light-bg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.8rem;
    animation: messageSlideIn 0.3s ease;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.chat-message.user .message-avatar {
    background: var(--green);
}

.message-content {
    max-width: 70%;
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chat-message.user .message-content {
    background: var(--primary-blue);
    color: white;
}

.message-sender {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--text-gray);
}

.chat-message.user .message-sender {
    color: rgba(255,255,255,0.8);
}

.message-text {
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.chat-message.user .message-time {
    color: rgba(255,255,255,0.7);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quick-reply-btn {
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-reply-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.chat-input-container {
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input:focus {
    border-color: var(--primary-blue);
}

.chat-send-btn {
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.typing-indicator {
    display: flex;
    gap: 0.3rem;
    padding: 0.5rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--text-gray);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Animations */
@keyframes chatBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .floating-chat-btn {
        bottom: 80px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .modal-content {
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }

    .chat-container {
        height: 450px;
    }

    .message-content {
        max-width: 80%;
    }
}

/* ═══════════════════════════════════════
   MOBILE SIDEBAR MENU
   Hamburger menu functionality
═══════════════════════════════════════ */

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--text-dark);
}

.sidebar-content {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-link:hover {
    background: var(--light-bg);
    color: var(--primary-blue);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(30, 58, 138, 0.1) 0%, transparent 100%);
    color: var(--primary-blue);
    border-left: 4px solid var(--primary-blue);
    font-weight: 600;
}

.sidebar-icon {
    font-size: 1.3rem;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger animation */
.menu-btn {
    position: relative;
    width: 30px;
    height: 24px;
}

.menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-btn span:nth-child(1) {
    top: 0;
}

.menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-btn span:nth-child(3) {
    bottom: 0;
}

.menu-btn.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-sidebar {
        width: 260px;
        left: -260px;
    }
}
/* ═══════════════════════════════════════
   FAILED TRANSACTION STYLING
   Display failed transactions in red
═══════════════════════════════════════ */

.failed-transaction {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
}

.transaction-icon.failed {
    background: #fecaca;
    color: #dc2626;
    font-weight: 700;
}

.transaction-amount.failed {
    color: #dc2626;
    font-weight: 700;
}

.failed-transaction .transaction-name {
    color: #991b1b;
    font-weight: 600;
}

.failed-transaction:hover {
    background: #fecaca;
}
