/* ============================================================================
   DEUTSCHE BANK AG - OFFICIAL STYLES
   Colors: #0018A8 (Deutsche Bank Blue), #ffffff (White)
   ============================================================================ */

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

:root {
    --db-blue: #0018A8;
    --db-blue-dark: #000c5f;
    --db-blue-light: #003cc5;
    --db-white: #ffffff;
    --db-gray: #f5f5f5;
    --db-gray-dark: #333333;
    --db-green: #00a000;
    --db-red: #d32f2f;
    --db-yellow: #ffd700;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--db-gray-dark);
    background: var(--db-gray);
}

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

/* ============================================================================
   HEADER
   ============================================================================ */

.db-header {
    background: var(--db-white);
    border-bottom: 3px solid var(--db-blue);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo svg {
    display: block;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--db-gray-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--db-blue);
}

.btn-login {
    background: var(--db-blue);
    color: var(--db-white) !important;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
}

.btn-login:hover {
    background: var(--db-blue-dark);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    background: linear-gradient(135deg, var(--db-blue) 0%, var(--db-blue-dark) 100%);
    color: var(--db-white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.8em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-primary {
    background: var(--db-yellow);
    color: var(--db-blue);
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--db-white);
    border: 2px solid var(--db-white);
}

.btn-secondary:hover {
    background: var(--db-white);
    color: var(--db-blue);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================================================
   ACCOUNT INFO SECTION
   ============================================================================ */

.account-info {
    padding: 60px 0;
    background: var(--db-white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.info-card {
    background: var(--db-gray);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--db-blue);
}

.info-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--db-blue);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.info-details p {
    margin: 10px 0;
    line-height: 1.8;
}

.balance-display {
    font-size: 2.5em;
    color: var(--db-green);
    font-weight: 700;
    margin: 20px 0;
}

.balance-label {
    color: #666;
    font-size: 0.9em;
}

/* ============================================================================
   SERVICES SECTION
   ============================================================================ */

.services {
    padding: 80px 0;
    background: var(--db-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    color: var(--db-blue);
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--db-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,24,168,0.15);
    border-color: var(--db-blue);
}

.service-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    color: var(--db-blue);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-link {
    color: var(--db-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.service-link:hover {
    color: var(--db-blue-dark);
}

/* ============================================================================
   QUICK ACCESS
   ============================================================================ */

.quick-access {
    padding: 60px 0;
    background: var(--db-white);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.quick-card {
    background: var(--db-blue);
    color: var(--db-white);
    padding: 30px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.quick-card:hover {
    background: var(--db-blue-dark);
    transform: translateY(-5px);
}

.quick-icon {
    font-size: 2.5em;
}

.quick-text {
    font-size: 1.1em;
    font-weight: 600;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.db-footer {
    background: var(--db-blue);
    color: var(--db-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-section p, .footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--db-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* ============================================================================
   LOGIN PAGE
   ============================================================================ */

.login-page {
    background: linear-gradient(135deg, var(--db-blue) 0%, var(--db-blue-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    max-width: 500px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header svg {
    margin: 0 auto 20px;
    display: block;
}

.login-header h1 {
    color: var(--db-white);
    font-size: 2em;
}

.login-box {
    background: var(--db-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-tabs {
    display: flex;
    background: var(--db-gray);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--db-white);
    color: var(--db-blue);
    border-bottom: 3px solid var(--db-blue);
}

.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: var(--db-blue);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--db-gray-dark);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--db-blue);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 45px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
}

.login-help {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.login-help a {
    color: var(--db-blue);
    text-decoration: none;
    font-size: 0.9em;
}

.login-help a:hover {
    text-decoration: underline;
}

.otp-info {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.otp-input:focus {
    outline: none;
    border-color: var(--db-blue);
}

.otp-timer {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.otp-timer span {
    color: var(--db-blue);
    font-weight: 700;
}

.security-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.security-badge {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--db-white);
}

.security-icon {
    font-size: 2em;
}

.security-badge strong {
    display: block;
    margin-bottom: 5px;
}

.security-badge p {
    font-size: 0.85em;
    opacity: 0.8;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
}

.login-footer a {
    color: var(--db-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.login-footer a:hover {
    opacity: 1;
}

/* ============================================================================
   DASHBOARD
   ============================================================================ */

.dashboard-page {
    display: flex;
    min-height: 100vh;
    background: var(--db-gray);
}

.dashboard-sidebar {
    width: 260px;
    background: var(--db-blue);
    color: var(--db-white);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255,0.1);
    color: var(--db-white);
}

.nav-icon {
    font-size: 1.3em;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    color: var(--db-white);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.2);
}

.dashboard-main {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

.dashboard-header {
    background: var(--db-white);
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-left h1 {
    color: var(--db-blue);
    font-size: 1.8em;
    margin-bottom: 5px;
}

.header-left p {
    color: #666;
    font-size: 0.9em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    position: relative;
    background: var(--db-gray);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3em;
    transition: background 0.3s;
}

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

.icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--db-red);
    color: var(--db-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.balance-card {
    background: var(--db-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.balance-card.primary {
    background: linear-gradient(135deg, var(--db-blue) 0%, var(--db-blue-light) 100%);
    color: var(--db-white);
}

.balance-card h3 {
    font-size: 0.9em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.balance-amount {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
}

.balance-amount.small {
    font-size: 1.5em;
}

.balance-change {
    font-size: 0.85em;
    opacity: 0.8;
}

.quick-actions {
    background: var(--db-white);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quick-actions h2 {
    color: var(--db-blue);
    margin-bottom: 25px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-btn {
    background: var(--db-gray);
    border: 2px solid transparent;
    padding: 25px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-btn:hover {
    border-color: var(--db-blue);
    background: var(--db-white);
}

.action-icon {
    font-size: 2em;
}

.dashboard-card {
    background: var(--db-white);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.card-header h2 {
    color: var(--db-blue);
}

.card-header a {
    color: var(--db-blue);
    text-decoration: none;
    font-weight: 600;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--db-gray);
    border-radius: 8px;
    border-left: 4px solid var(--db-blue);
}

.transaction-info h4 {
    color: var(--db-blue);
    margin-bottom: 5px;
}

.transaction-info p {
    color: #666;
    font-size: 0.9em;
}

.transaction-amount {
    font-size: 1.3em;
    font-weight: 700;
}

.transaction-amount.negative {
    color: var(--db-red);
}

.transaction-amount.positive {
    color: var(--db-green);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.account-number {
    font-family: monospace;
    color: #666;
    margin: 10px 0;
}

.account-balance {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--db-blue);
    margin: 15px 0;
}

.account-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-sm {
    padding: 8px 20px;
    background: var(--db-blue);
    color: var(--db-white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-sm:hover {
    background: var(--db-blue-dark);
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.status-ok {
    color: var(--db-green);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-main {
        margin-left: 0;
    }
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    .hero h1 {
        font-size: 2em;
    }
    .balance-amount {
        font-size: 1.5em;
    }
}

/* Why Deutsche Bank Section */
.why-db {
    padding: 80px 0;
    background: var(--db-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 40px 20px;
    background: var(--db-gray);
    border-radius: 10px;
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,24,168,0.1);
}

.feature-icon {
    display: block;
    font-size: 3em;
    color: var(--db-green);
    margin-bottom: 20px;
}

.feature-box h3 {
    color: var(--db-blue);
    margin-bottom: 10px;
}

.feature-box p {
    color: #666;
}

/* ============================================================================
   LANGUAGE SELECTOR
   ============================================================================ */

.language-selector {
    display: flex;
    gap: 5px;
    align-items: center;
    background: var(--db-gray);
    padding: 5px;
    border-radius: 5px;
}

.lang-btn {
    padding: 8px 15px;
    border: none;
    background: transparent;
    color: var(--db-gray-dark);
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: rgba(0,24,168,0.1);
}

.lang-btn.active {
    background: var(--db-blue);
    color: var(--db-white);
}

/* ============================================================================
   FIX FEATURE BOXES - BLUE BACKGROUND
   ============================================================================ */

.feature-box {
    text-align: center;
    padding: 40px 20px;
    background: var(--db-blue) !important;  /* BLUE BACKGROUND */
    color: var(--db-white);
    border-radius: 10px;
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,24,168,0.3);
    background: var(--db-blue-dark) !important;
}

.feature-icon {
    display: block;
    font-size: 3em;
    color: var(--db-yellow) !important;  /* YELLOW CHECKMARK */
    margin-bottom: 20px;
}

.feature-box h3 {
    color: var(--db-white) !important;  /* WHITE TEXT */
    margin-bottom: 10px;
}

.feature-box p {
    color: rgba(255,255,255,0.9) !important;  /* WHITE TEXT */
}

/* Responsive language selector */
@media (max-width: 768px) {
    .language-selector {
        order: 3;
        margin-top: 10px;
    }
}

/* ============================================================================
   SERVICE CARDS - BLUE BACKGROUND
   ============================================================================ */

.service-card {
    background: var(--db-blue) !important;
    color: var(--db-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,24,168,0.3);
    border-color: var(--db-yellow);
    background: var(--db-blue-dark) !important;
}

.service-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    color: var(--db-white) !important;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.service-card p {
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 20px;
}

.service-link {
    color: var(--db-yellow) !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.service-link:hover {
    color: #ffed4e !important;
    text-decoration: underline;
}

/* ============================================================================
   INFO CARDS - KEEP LIGHT GRAY (PUBLIC INFO)
   ============================================================================ */

.info-card {
    background: var(--db-gray) !important;
    color: var(--db-gray-dark);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--db-blue);
}

.info-card h3 {
    color: var(--db-blue) !important;
}

.info-card p, .info-details p {
    color: var(--db-gray-dark) !important;
}

/* ============================================================================
   SERVICE CARDS - BLUE BACKGROUND
   ============================================================================ */

.service-card {
    background: var(--db-blue) !important;
    color: var(--db-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,24,168,0.3);
    border-color: var(--db-yellow);
    background: var(--db-blue-dark) !important;
}

.service-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    color: var(--db-white) !important;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.service-card p {
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 20px;
}

.service-link {
    color: var(--db-yellow) !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.service-link:hover {
    color: #ffed4e !important;
    text-decoration: underline;
}

/* ============================================================================
   INFO CARDS - KEEP LIGHT GRAY (PUBLIC INFO)
   ============================================================================ */

.info-card {
    background: var(--db-gray) !important;
    color: var(--db-gray-dark);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--db-blue);
}

.info-card h3 {
    color: var(--db-blue) !important;
}

.info-card p, .info-details p {
    color: var(--db-gray-dark) !important;
}
