:root {
    /* --- SHARED PALETTE --- */
    --bg-color: #F2EFE4; 
    
    /* Login specific bg */
    --app-bg-login: #FFFEFA; 
    /* Dashboard specific bg */
    --app-bg-dashboard: #FFFFFF; 
    
    /* Login Gold */
    --gold-solid: #DDCBA2; 
    
    /* Dashboard Gold */
    --card-gold-rich: #E8DFBF; 
    --card-gold-pale: #DDCBA2; 
    --btn-bg: #E8DFBF; 
    
    --text-dark: #221F1A; 
    --text-grey: #8E8E93;
    --input-bg: #F9F7F2;
    --border-color: #E0E0E0;
    
    --success-green: #4CD964;
    
    /* Icons */
    --icon-bg-spotify: #1ED760;
    --icon-bg-uber: #000000;
    --icon-bg-reddit: #FF4500;
    --icon-bg-starbucks: #00704A;
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
    outline: none !important;
}

/* --- COMMON FONTS --- */
body {
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
    color: var(--text-dark);
}

/* --- LOGIN PAGE STYLES --- */
body.body-login {
    background-color: var(--app-bg-login);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- METRO INPUTS (0px radius) --- */
.form-group {
    width: 100%;
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.custom-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-input {
    width: 100%;
    padding: 18px 20px;
    padding-left: 50px; 
    border-radius: 0px; /* METRO STYLE */
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.custom-input:focus {
    border-color: var(--gold-solid);
    background-color: #fff;
    box-shadow: none; 
    border-width: 2px;
    padding-left: 49px; 
    padding-top: 17px;
    padding-bottom: 17px;
}

.input-icon {
    position: absolute;
    left: 20px;
    color: var(--text-grey);
    font-size: 18px;
    transition: color 0.2s;
}

.custom-input:focus ~ .input-icon,
.custom-input:focus + .input-icon {
    color: var(--gold-solid);
}

/* --- METRO CHECKBOX --- */
.form-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-grey);
    user-select: none;
}

.checkbox-container input {
    position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0;
}

.checkmark {
    height: 20px; width: 20px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 0px; /* METRO STYLE */
    margin-right: 10px;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.2s;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--gold-solid);
    border-color: var(--gold-solid);
}

.checkmark:after {
    content: ""; display: none;
    width: 5px; height: 10px;
    border: solid var(--text-dark); /* Dark checkmark */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg); margin-bottom: 2px;
}

.checkbox-container input:checked ~ .checkmark:after { display: block; }

.forgot-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* --- METRO BUTTON (Light Gold) --- */
.btn-login {
    width: 100%;
    padding: 20px;
    border-radius: 0px; 
    border: none;
    background: var(--gold-solid); 
    color: var(--text-dark); /* Tamni tekst */
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s;
}

.btn-login:hover {
    background-color: #D4C39E; 
}

.btn-login:active { 
    transform: translateY(2px); 
}

.biometric-btn {
    margin-top: 40px;
    background: none; border: none;
    color: var(--gold-solid);
    font-size: 48px;
    cursor: pointer; opacity: 0.9;
    transition: transform 0.2s;
}
.biometric-btn:active { transform: scale(0.9); }

.error-msg {
    color: white;
    background-color: #FF3B30;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    padding: 15px;
    border-radius: 0px; 
    width: 100%;
    font-weight: 500;
}


/* --- DASHBOARD PAGE STYLES --- */
body.body-dashboard {
    background-color: var(--app-bg-dashboard);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    background-color: var(--app-bg-dashboard);
    box-shadow: none !important; 
}

.static-top {
    flex: 0 0 auto;
    background-color: var(--app-bg-dashboard);
    z-index: 10;
    padding-bottom: 0px; 
}

.scrollable-bottom {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 160px; /* Increased padding to clear floating buttons significantly */
    padding-left: 24px; 
    padding-right: 24px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.scrollable-bottom::-webkit-scrollbar { width: 0px; display: none; }
.scrollable-bottom { -ms-overflow-style: none; scrollbar-width: none; }

.app-header {
    padding: 20px 24px;
    padding-top: 30px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.user-profile { display: flex; align-items: center; gap: 12px; }
.avatar { 
    width: 40px; height: 40px; 
    border-radius: 50%; 
    object-fit: cover; 
    background-color: #eee; 
    flex-shrink: 0; /* Prevent squashing on mobile */
}
.user-name { 
    font-weight: 600; font-size: 16px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Keep actions buttons intact */
}

.btn-icon, .round-icon-btn {
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    background: var(--btn-bg); 
    border: none; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    color: var(--text-dark); 
    position: relative; 
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.1s;
    flex-shrink: 0; /* Prevent button squashing */
}
.header-actions .btn-icon { margin-left: 8px; }

.btn-icon:hover, .round-icon-btn:hover {
    transform: scale(1.05);
    filter: brightness(0.95);
}

.notification-badge {
    position: absolute; top: -2px; right: -2px; background: #FF3B30; color: white;
    font-size: 9px; font-weight: bold; width: 14px; height: 14px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; border: 2px solid white;
}

.balance-section { padding: 10px 24px; }
.label-text { color: var(--text-grey); font-size: 14px; margin-bottom: 4px; }
.balance-row { display: flex; justify-content: space-between; align-items: center; }
.main-balance { font-size: 42px; font-weight: 700; letter-spacing: -1.5px; }

.card-gold-rich { 
    background: linear-gradient(135deg, #B38B2D 0%, #967425 100%) !important; 
    color: white !important;
}
.card-gold-pale { 
    background-color: var(--card-gold-pale) !important; 
    color: var(--text-dark) !important;
}

.card-theme-savings {
    background-color: #E6E2D3 !important; /* Desaturated/Matte Savings Color */
    color: var(--text-dark) !important;
    border: 1px solid #D1C4A9;
}

.card-black {
    background-color: #221F1A !important;
    color: #E8DFBF !important; /* Gold Text */
}
.card-black i {
    color: #E8DFBF !important;
}

.floating-actions-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px; 
    z-index: 90; 
}

.floating-btn {
    width: 56px; 
    height: 56px; 
    border-radius: 50%; 
    border: none;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 20px; 
    cursor: pointer; 
    transition: transform 0.1s; 
    background-color: var(--btn-bg); 
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.floating-btn:hover { filter: brightness(0.95); transform: scale(1.05); }

.floating-btn.main-action {
    background-color: var(--text-dark);
    color: white;
    transform: scale(1.1);
}

.transactions-title-container { padding: 10px 24px; padding-bottom: 0; }
.section-title { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.transaction-item {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; cursor: pointer; transition: opacity 0.2s;
    flex-wrap: nowrap; /* Prevent wrapping to new line */
}
.transaction-item:active { opacity: 0.6; }
.t-left { 
    display: flex; align-items: center; gap: 16px; 
    flex: 1; /* Take available space */
    min-width: 0; /* Enable text truncation in flex child */
    margin-right: 10px; /* Space before amount */
}
.t-icon-box {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; /* Don't shrink icon */
    display: flex; justify-content: center; align-items: center; font-size: 20px;
}
.icon-starbucks { background: #e8f5e9; color: var(--icon-bg-starbucks); }
.icon-reddit { background: #ffebee; color: var(--icon-bg-reddit); }
.icon-spotify { background: #e8f5e9; color: var(--icon-bg-spotify); }
.icon-uber { background: #212121; color: white; }
.icon-user { background: url('https://randomuser.me/api/portraits/men/32.jpg'); background-size: cover; }
.t-info { 
    display: flex; flex-direction: column; 
    min-width: 0; /* Enable text truncation */
    width: 100%;
    overflow: hidden; /* Ensure container clips content */
}
.t-name { 
    font-weight: 600; font-size: 14px; 
    margin-bottom: 2px; 
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis for long names */
    display: block; 
}
.t-date { 
    font-size: 11px; 
    color: var(--text-grey); 
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis for long dates/categories */
    display: block;
}
.t-amount { 
    font-weight: 600; font-size: 15px; 
    white-space: nowrap; 
    flex-shrink: 0; 
    margin-left: 10px; /* Ensure space between name and amount */
    text-align: right;
}

/* --- MOBILE OPTIMIZATION FOR TRANSACTIONS --- */
@media (max-width: 480px) {
    .t-name { font-size: 13px; }
    .t-date { font-size: 10px; }
    .t-amount { font-size: 14px; }
    .t-icon-box { width: 40px; height: 40px; font-size: 18px; } /* Smaller icon */
    .t-left { gap: 10px; }
}
.amount-neg { color: var(--text-dark); }
.amount-pos { color: #B38B2D; }

/* --- OVERLAY i Z-INDEX MODIFIKACIJE --- */
.transaction-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); 
    z-index: 2050; 
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.transaction-overlay.open { opacity: 1; pointer-events: auto; }

/* --- SLIDE-IN PANEL MODIFIKACIJE --- */
.slide-in-panel {
    position: fixed; bottom: 0; left: 0; width: 100%; height: auto; min-height: 50vh;
    background: white; border-top-left-radius: 0px; border-top-right-radius: 0px;
    z-index: 2100; 
    transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: none !important;
    border-top: 1px solid #f0f0f0; 
}
.slide-in-panel.open { transform: translateY(0); }

.dashboard-panel-content {
    padding: 30px; 
    padding-top: 50px;
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.panel-close-btn {
    position: absolute; top: 20px; right: 20px; background: #f5f5f5; border: none;
    width: 36px; height: 36px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    cursor: pointer; font-size: 18px; z-index: 101;
}

.top-slide-panel {
    position: fixed; top: 0; left: 0; width: 100%; height: 240px; 
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 2100; 
    transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: none !important;
}
.top-slide-panel.open { transform: translateY(0); }

.top-panel-content { width: 100%; padding: 20px 0; display: flex; flex-direction: column; justify-content: center; }
.interactive-wallet-container { width: 100%; display: flex; overflow-x: auto; padding: 0 24px; padding-bottom: 20px; -ms-overflow-style: none; scrollbar-width: none; }
.interactive-wallet-container::-webkit-scrollbar { display: none; }

.vertical-wallet-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 20px;
    padding-bottom: 20px;
    width: 100%;
}

.i-wallet-card {
    flex: 0 0 auto; width: 320px; height: 180px; border-radius: 16px; margin-right: 16px; padding: 18px;
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 10px 20px rgba(179, 139, 45, 0.2); transition: transform 0.2s; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
}

.i-wallet-card.side-panel-card {
    margin-right: 0;
    width: 100%; /* Full width matched to button */
    max-width: none; 
}
.i-wallet-card:hover { transform: translateY(-2px); }

/* QR Code Slide-in Overlay inside Card */
.card-qr-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: inherit; backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px; 
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    z-index: 20;
}
.i-wallet-card.show-qr .card-qr-slide {
    opacity: 1; pointer-events: auto;
}

/* NO ICON VARIANT */
.custom-input.no-icon {
    padding-left: 20px;
}
.custom-input.no-icon:focus {
    padding-left: 19px;
}

/* Custom Select styling with custom arrow */
select.custom-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221F1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 50px; 
    cursor: pointer;
}


/* --- SIDE PANEL RIGHT (Send Money, itp.) --- */
.side-panel-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px; /* Širina panela */
    height: 100vh;
    background-color: var(--app-bg-dashboard);
    z-index: 2200;
    box-shadow: none; /* Removed shadow */
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .side-panel-right {
        max-width: none;
        width: 100%;
    }
}

.side-panel-right.open {
    transform: translateX(0);
}

.side-panel-content {
    padding: 30px;
    height: 100%;
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.side-panel-content::-webkit-scrollbar {
    display: none;
}

.side-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.side-panel-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.side-panel-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

.payment-form-group {
    margin-bottom: 24px;
}
.payment-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-grey);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.payment-input-row {
    display: flex; gap: 10px;
}

.payment-status-message {
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    border-left: 4px solid transparent;
}
.status-success {
    background-color: rgba(76, 217, 100, 0.1);
    border-left-color: var(--success-green);
    color: #2D8A40;
}
.status-pending {
    background-color: rgba(255, 149, 0, 0.1);
    border-left-color: #FF9500;
    color: #C47200;
}

.side-panel-footer {
    padding: 30px;
    border-top: 1px solid var(--border-color);
    background-color: white;
}

/* Original Send Money Panel - REMEVED/HIDDEN */
.send-money-panel { display: none; }
.native-input-group { display: none; }


.full-screen-page {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--app-bg-dashboard); z-index: 2000;
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.full-screen-page.open { transform: translateX(0); }
.full-screen-page.z-300 { z-index: 3000; }

.page-header {
    flex: 0 0 auto; padding: 40px 24px 10px 24px;
    display: flex; justify-content: space-between; align-items: center;
    background-color: var(--app-bg-dashboard);
}
.page-back-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-dark); padding: 0; }
.page-title { font-size: 16px; font-weight: 600; }

.padded-scrollable-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px 24px;
    padding-bottom: 50px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.padded-scrollable-content::-webkit-scrollbar {
    display: none;
    width: 0px;
}

.panel-icon-large {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 36px; margin-bottom: 20px;
}
.panel-amount { font-size: 42px; font-weight: 700; margin-bottom: 5px; letter-spacing: -1.5px; }
.panel-name { font-size: 20px; font-weight: 500; color: var(--text-grey); margin-bottom: 30px; }
.detail-row {
    width: 100%; display: flex; justify-content: space-between;
    padding: 15px 0; border-bottom: 1px solid #f0f0f0;
}
.detail-label { color: var(--text-grey); font-size: 14px; }
.detail-value { font-weight: 600; font-size: 14px; color: var(--text-dark); }

/* --- DESKTOP MODIFIKACIJE (Full Width) --- */
@media (min-width: 1024px) {
    body.body-dashboard {
        background-color: #FFFFFF;
        display: block; 
    }
    #app {
        max-width: 100%;
        margin: 0;
        position: relative;
        box-shadow: none !important;
        min-height: 100vh;
    }
    
    .transaction-overlay,
    .slide-in-panel,
    .top-slide-panel,
    .send-money-panel,
    .full-screen-page {
        max-width: 100%;
        left: 0 !important;
        width: 100%;
    }
}

/* --- REGISTRATION SLIDE-IN PANEL --- */
.register-link-container {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.register-link {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-bottom: 2px solid var(--gold-solid);
    transition: all 0.2s;
}

.register-link:hover {
    color: var(--gold-solid);
}

.register-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.register-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.register-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background-color: var(--app-bg-login);
    z-index: 3000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none; /* Removed shadow */
    display: flex;
    flex-direction: column;
}

.register-panel.open {
    transform: translateX(0);
}

.reg-header {
    padding: 30px 40px;
    background-color: var(--gold-solid);
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reg-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.reg-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    transition: transform 0.2s;
}

.reg-close-btn:hover {
    transform: rotate(90deg);
}

.reg-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.reg-content::-webkit-scrollbar {
    display: none;
}

.reg-section {
    display: none;
    animation: fadeIn 0.3s;
}

.reg-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.reg-section-title {
    font-size: 18px; 
    font-weight: 600; 
    margin-bottom: 25px; 
    color: var(--gold-solid);
    text-transform: uppercase;
}

.reg-btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.reg-btn-secondary {
    background: transparent;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    flex: 1;
    cursor: pointer;
    border-radius: 0px;
    transition: all 0.2s;
}
.reg-btn-secondary:hover {
    background: rgba(0,0,0,0.05);
}

.reg-btn-primary {
    background: var(--gold-solid) !important;
    border: 1px solid var(--gold-solid);
    color: var(--text-dark) !important;
    padding: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    flex: 1;
    cursor: pointer;
    border-radius: 0px;
    transition: background 0.2s;
    box-shadow: none;
}
.reg-btn-primary:hover {
    background-color: #D4C39E !important;
}
.reg-btn-primary:active {
    transform: translateY(2px);
}

.input-feedback {
    font-size: 12px;
    margin-top: -20px;
    margin-bottom: 20px;
    display: block;
    height: 16px;
}

.feedback-error { color: #FF3B30; }
.feedback-success { color: var(--success-green); }

@media (max-width: 992px) {
    .register-panel {
        width: 85%;
    }
}
@media (max-width: 576px) {
    .register-panel {
        width: 100%;
    }
}

/* Google Address Autocomplete Overrides */
#regAddressSearchGoogle {
    height: 62px;
    padding-left: 20px !important;
    width: 100%;
    border-radius: 0px; 
    --gmpx-border-radius: 0px; /* Try to force google variable if exists */
    --gmpx-color-surface: #F9F7F2;
    --gmpx-color-on-surface: #221F1A;
    --gmpx-color-outline: #221F1A; /* Match border color dark */
}


/* Password Strength Meter */
.password-strength-bar {
    height: 4px;
    background-color: #E0E0E0;
    margin-top: 5px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 11px;
    margin-top: 3px;
    text-align: right;
    font-weight: 600;
}


/* --- TOASTR CUSTOMIZATION FOR ROYAL BANK --- */
/* Override toastr container positioning if needed, though default is okay */
#toast-container > div {
    opacity: 1 !important; /* Force solid opacity */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    border-radius: 0px !important; /* Square corners */
    width: 350px !important; /* Large width */
    padding: 20px 20px 20px 60px !important; /* Larger padding */
    background-image: none !important; /* Remove default icon if we want custom or none, but keep it for now */
    border: none !important;
    font-family: 'Space Grotesk', sans-serif !important;
}

/* Base Toast Style (Pale Gold) */
.toast {
    background-color: var(--card-gold-pale) !important; /* #DDCBA2 */
    color: var(--text-dark) !important;
}

/* Success */
.toast-success {
    background-color: var(--card-gold-pale) !important;
    border-left: 5px solid var(--success-green) !important; /* Green Accent */
}

/* Error */
.toast-error {
    background-color: var(--card-gold-pale) !important;
    border-left: 5px solid #FF3B30 !important; /* Red Accent */
}

/* Info */
.toast-info {
    background-color: var(--card-gold-pale) !important;
    border-left: 5px solid #007AFF !important; /* Blue Accent */
}

/* Warning */
.toast-warning {
    background-color: var(--card-gold-pale) !important;
    border-left: 5px solid #FF9500 !important; /* Orange Accent */
}

/* Title Styling */
.toast-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
    color: var(--text-dark) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Message Styling */
.toast-message {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    line-height: 1.4 !important;
}

/* Close Button Override */
.toast-close-button {
    color: var(--text-dark) !important;
    opacity: 0.5 !important;
    font-size: 24px !important;
    font-weight: normal !important;
    top: -5px !important;
    right: -5px !important;
}
.toast-close-button:hover {
    color: #000 !important;
    opacity: 1 !important;
}

/* Ensure progress bar matches if used */
.toast-progress {
    background-color: rgba(34, 31, 26, 0.2) !important; /* Dark dim for progress */
}
