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

:root {
    --bg-primary: #0E0E0E;
    --bg-secondary: #121212;
    --bg-card: #161616;
    --bg-layer-1: #1a1a1a;
    --bg-layer-2: #222;
    --bg-chrome: #000;
    --tesla-red: #E82127;
    --text-primary: #EDEDED;
    --text-secondary: #999;
    --text-muted: #666;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-muted: #333;
    --border-accent: #E82127;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: var(--bg-primary);
    color: var(--text-primary);
}

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

.navbar {
    background: var(--bg-chrome);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo h2 {
    color: var(--tesla-red);
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s;
    border-radius: 8px;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-svg {
    cursor: pointer;
    transition: transform 0.3s;
}

.logo-svg:hover {
    transform: scale(1.1);
}

.nav-menu-toggle {
    background: var(--tesla-red);
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-menu-toggle:hover {
    background: #c41530;
    transform: scale(1.02);
}

.nav-menu-toggle svg {
    stroke: currentColor;
}

.menu-text {
    display: inline;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    transition: all 0.3s ease;
}

.nav-dropdown.collapsed {
    display: none;
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
}

.nav-dropdown.expanded {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-dropdown-item:hover {
    background: rgba(227, 25, 55, 0.1);
    color: var(--tesla-red);
}

.nav-dropdown-divider {
    height: 1px;
    background: #333;
    margin: 8px 0;
}

.nav-dropdown-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    font-family: inherit;
}

.nav-dropdown-btn.signup-btn {
    background: var(--tesla-red);
    color: #fff;
    margin: 4px 12px;
    width: calc(100% - 24px);
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.nav-dropdown-btn.signup-btn:hover {
    background: #c41530;
}

.nav-dropdown-btn.logout-btn {
    color: var(--tesla-red);
}

.nav-support {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    font-size: 0.85rem;
}

.nav-support svg {
    stroke: var(--tesla-red);
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-login, .btn-signup {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-login {
    background: transparent;
    border: 2px solid var(--tesla-red);
    color: var(--tesla-red);
}

.btn-login:hover {
    background: var(--tesla-red);
    color: #fff;
}

.btn-signup {
    background: var(--tesla-red);
    color: #fff;
    border: 2px solid var(--tesla-red);
}

.btn-signup:hover {
    background: transparent;
    color: var(--tesla-red);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    background: var(--bg-chrome);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* Hero Dashboard for Logged-in Users */
.hero-dashboard {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

.hero-dashboard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.account-balance-card,
.stock-actions-card {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid var(--tesla-red);
    border-radius: 8px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.account-balance-card h2,
.stock-actions-card h3 {
    color: var(--tesla-red);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.balance-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(227, 25, 55, 0.1);
    border-radius: 4px;
    border-left: 3px solid var(--tesla-red);
}

.balance-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.balance-value {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    background: var(--tesla-red);
    color: #fff;
    border: 2px solid var(--tesla-red);
    padding: 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.action-btn:hover {
    background: transparent;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 1.5rem;
}

.stock-selector {
    margin-top: 1.5rem;
}

.stock-selector label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stock-selector select {
    width: 100%;
    padding: 1rem;
    background: rgba(227, 25, 55, 0.1);
    border: 2px solid var(--border-muted);
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.stock-selector select:focus {
    outline: none;
    border-color: var(--tesla-red);
}

.selected-stock-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(227, 25, 55, 0.15);
    border-radius: 4px;
}

.selected-stock-info #stockSymbol {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.selected-stock-info #stockPrice {
    color: var(--tesla-red);
    font-weight: 700;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .hero-dashboard-container {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: var(--tesla-red);
    color: #fff;
    padding: 1.3rem 3rem;
    border: 2px solid var(--tesla-red);
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
}

.cta-button:hover {
    background: transparent;
    color: var(--tesla-red);
}

/* Hide CTA buttons when user is logged in */
.cta-button-guest.hidden {
    display: none !important;
}

.tesla-showcase {
    padding: 48px 0;
    background: var(--bg-primary);
}

.tesla-showcase h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 2.5rem;
    color: var(--tesla-red);
    font-weight: 600;
    letter-spacing: 1px;
}

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

.showcase-card {
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s;
}

.showcase-card:hover {
    border-color: var(--tesla-red);
}

.showcase-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.showcase-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    color: #e31937;
    font-size: 1.3rem;
}

.showcase-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.investment-plans {
    padding: 48px 0;
    background: var(--bg-primary);
}

.investment-plans h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 2.5rem;
    color: var(--tesla-red);
    font-weight: 600;
    letter-spacing: 1px;
}

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

.plan-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s;
    position: relative;
}

.plan-card:hover {
    border-color: var(--tesla-red);
}

.plan-card.featured {
    border-color: var(--tesla-red);
    border-width: 2px;
}

.price {
    font-size: 2.5rem;
    color: #e31937;
    margin: 1rem 0;
    font-weight: 700;
}

.returns {
    color: var(--tesla-red);
    margin-bottom: 1rem;
}

.plan-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.plan-card li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    border-bottom: 1px solid #333;
    position: relative;
}

.plan-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--tesla-red);
    border-radius: 50%;
}

.invest-btn {
    background: var(--tesla-red);
    color: #fff;
    padding: 1.2rem 2rem;
    border: 2px solid var(--tesla-red);
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.invest-btn:hover {
    background: transparent;
    color: var(--tesla-red);
}

.stocks-section {
    padding: 5rem 0;
    background: #000;
}

.stocks-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #e31937;
}

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

.stock-card {
    background: var(--bg-layer-1);
    padding: 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-muted);
    transition: all 0.3s;
}

.stock-card:hover {
    border-color: #e31937;

}

.stock-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.stock-info h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.stock-price {
    color: var(--tesla-red);
    font-weight: 700;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);

}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    border: 3px solid #e31937;
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-layer-1);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--tesla-red);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #c01d23;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: var(--tesla-red);
    z-index: 0;
}

.modal-content h2 {
    position: sticky;
    top: 0;
    z-index: 10;
    color: #fff;
    text-align: center;
    padding: 2rem 2rem 1rem;
    margin: 0;
    font-size: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: var(--tesla-red);
}

.modal-content > form,
.modal-content > .bitcoin-info,
.modal-content > .payment-methods {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.signup-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.signup-modal::-webkit-scrollbar {
    width: 8px;
}

.signup-modal::-webkit-scrollbar-track {
    background: #000;
    border-radius: 4px;
}

.signup-modal::-webkit-scrollbar-thumb {
    background: #e31937;
    border-radius: 4px;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
}

.signup-form {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;

    }
    to {
        opacity: 1;

    }
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #e31937;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.close {
    color: #fff;
    background: rgba(232, 33, 39, 0.8);
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.close:hover {
    background: var(--tesla-red);
    transform: scale(1.1) rotate(90deg);
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(232, 33, 39, 0.6);
}

.close:active {
    transform: scale(0.95) rotate(90deg);
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-muted);
    border-radius: 4px;
    background: #0a0a0a;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

.password-toggle-btn:hover {
    color: var(--tesla-red);
}

.copy-btn {
    background: var(--tesla-red);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-left: 0.5rem;
}

.copy-btn:hover {
    background: #c01d23;
    transform: translateY(-2px);
}

.wallet-address-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-address-wrapper input {
    flex: 1;
}

.form-group input:focus {
    outline: none;
    border-color: var(--tesla-red);
    background: var(--bg-chrome);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:hover {
    border-color: #444;
}

.submit-btn {
    background: var(--tesla-red);
    color: #fff;
    padding: 1rem 2rem;
    border: 2px solid var(--tesla-red);
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 500;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.submit-btn:hover {
    background: transparent;
    color: var(--tesla-red);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-footer a {
    color: #e31937;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-btn {
    flex: 1;
    padding: 1.2rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    font-weight: 600;
}

.payment-btn:hover {
    border-color: var(--tesla-red);
    background: var(--tesla-red);
}

.payment-section {
    margin-top: 2rem;
}

.hidden {
    display: none !important;
}

.bitcoin-info {
    text-align: center;
}

.bitcoin-address {
    background: #000;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-family: monospace;
    border: 1px solid var(--border-muted);
    word-break: break-all;
    font-size: 0.9rem;
}

.bitcoin-note {
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.5rem;
}

.qr-code {
    margin: 1rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
    max-width: 200px;
}

/* Bitcoin Investment Section */
.bitcoin-investment-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.bitcoin-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.bitcoin-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #f7931a 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bitcoin-subtitle {
    font-size: 1.2rem;
    color: #999;
}

.bitcoin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #f7931a;
}

.stat-icon {
    margin-bottom: 1rem;
    stroke: #f7931a;
    display: inline-block;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #f7931a;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #999;
    font-size: 0.9rem;
}

.bitcoin-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: #f7931a;
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-icon {
    stroke: var(--tesla-red);
    flex-shrink: 0;
}

.feature-card p {
    color: #999;
    line-height: 1.6;
}

.bitcoin-cta {
    text-align: center;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid #f7931a;
}

.bitcoin-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bitcoin-cta p {
    font-size: 1.1rem;
    color: #999;
    margin-bottom: 2rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: -300px;
    background: var(--bg-layer-1);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    z-index: 10000;
    transition: right 0.3s ease;
    max-width: 300px;
}

.notification.show {
    right: 20px;
}

.notification.success {
    border-left: 4px solid var(--tesla-red);
}

.notification.error {
    border-left: 4px solid #e31937;
}

.notification.info {
    border-left: 4px solid #2196F3;
}

/* Chat Widget */
#chatWidget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--bg-layer-1);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.chat-header {
    background: #e31937;
    color: #fff;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #0a0a0a;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 4px;
    max-width: 80%;
}

.user-message {
    background: #e31937;
    margin-left: auto;
}

.admin-message {
    background: #333;
}

.message-content {
    margin-bottom: 0.3rem;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
}

.chat-input {
    display: flex;
    padding: 1rem;
    background: var(--bg-layer-1);
    border-radius: 0 0 10px 10px;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border-muted);
    background: #0a0a0a;
    color: #fff;
    border-radius: 5px 0 0 5px;
}

.chat-input button {
    padding: 0.8rem 1.5rem;
    background: #e31937;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--tesla-red);
    color: #000;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.plan-card {
    position: relative;
}

/* Menu Sidebar */
.menu-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: var(--bg-layer-1);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.menu-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #e31937;
    color: #fff;
}

.sidebar-header h3 {
    margin: 0;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.sidebar-content {
    padding: 1rem;
}

.sidebar-btn {
    width: 100%;
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.8rem;
    background: transparent;
    color: var(--text-primary);
    border: none;
    border-left: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.05rem;
    text-align: left;
    transition: border-color 0.2s, color 0.2s;
    font-weight: 500;
}

.sidebar-btn:hover {
    border-left-color: var(--tesla-red);
    color: #fff;
}

/* Menu Button */
.menu-button {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    background: var(--tesla-red);
    color: #fff;
    border: 2px solid var(--tesla-red);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 1500;
    display: none;
    transition: all 0.2s;
}

.menu-button:hover {
    background: transparent;
    color: var(--tesla-red);
}

/* Dashboard Header Bar */
.dashboard-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-chrome);
    border-bottom: 1px solid var(--border-color);
    z-index: 1500;
}

.dashboard-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.dashboard-logo h2 {
    color: #e31937;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
}

.dashboard-user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.balance-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.8rem;
    background: var(--bg-card);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--tesla-red);
    transition: all 0.2s;
}

.balance-chip:hover {
    border-color: var(--tesla-red);
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-profile-dropdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    background: var(--bg-layer-1);
    border: 2px solid var(--border-muted);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile-dropdown:hover {
    border-color: #e31937;
    background: var(--bg-layer-2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tesla-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.user-name-header {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.user-profile-dropdown:hover .dropdown-arrow {

}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-layer-1);
    border: 2px solid #e31937;
    border-radius: 4px;
    min-width: 220px;
    overflow: hidden;
    z-index: 2000;
}

.dropdown-item {
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    border-bottom: 1px solid #333;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover:not(:disabled) {
    background: #e31937;
    padding-left: 2rem;
}

.dropdown-section-header {
    font-weight: 700;
    font-size: 0.85rem;
    color: #e31937;
    padding: 0.75rem 1.5rem;
    cursor: default;
    opacity: 1;
}

.dropdown-section-header:hover {
    background: transparent;
    padding-left: 1.5rem;
}

.dropdown-divider {
    height: 2px;
    background: #333;
    margin: 0.5rem 0;
}

.logout-item {
    color: #ff6b6b;
}

.logout-item:hover {
    background: #ff6b6b;
    color: #fff;
}

/* Adjust main content for fixed header */
.dashboard-header-bar ~ * {
    margin-top: 80px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--bg-layer-1);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border: 2px solid #e31937;
}

.chat-header {
    background: #e31937;
    color: #fff;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.close-chat {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-chat:hover {
    color: #000;

}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #0a0a0a;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 4px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background: #e31937;
    margin-left: auto;
    text-align: right;
}

.admin-message {
    background: #333;
    margin-right: auto;
}

.message-content {
    margin-bottom: 0.3rem;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
}

.chat-input {
    display: flex;
    padding: 1rem;
    background: var(--bg-layer-1);
    border-radius: 0 0 10px 10px;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border-muted);
    background: #0a0a0a;
    color: #fff;
    border-radius: 5px 0 0 5px;
}

.chat-input button {
    padding: 0.8rem 1.5rem;
    background: #e31937;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.chat-input button:hover {
    background: #c1121f;
}

/* Chat Button */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e31937;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
}

.chat-button:hover {

}

/* Bank Overview */
.bank-overview {
    background: #0a0a0a;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.bank-overview h3 {
    color: #e31937;
    margin-bottom: 1rem;
}

.overview-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.overview-item:last-child {
    border-bottom: none;
}

.overview-item strong {
    color: var(--text-secondary);
}

.overview-item span {
    color: #fff;
    margin-left: 0.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-secondary {
    flex: 1;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-muted);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--tesla-red);
    color: var(--tesla-red);
}

/* Professional Credit Union Dashboard */
.account-summary-section {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.welcome-text h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.account-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.account-number {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.account-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-id {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    font-family: monospace;
    margin-top: 0.25rem;
}

/* Credit Union Account Card - Professional Design */
.account-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.account-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid var(--tesla-red);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(232, 33, 39, 0.15);
}

.account-card::before {
    display: none;
}

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

.card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.card-icon {
    font-size: 1.2rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-card-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(227, 25, 55, 0.1);
    border: 1px solid var(--border-color);
    color: #e31937;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-card-action:hover {
    background: #e31937;
    color: #fff;
    transform: scale(1.1);
}

.card-balance {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.card-balance .currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.card-balance .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}

.card-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Actions Bar */
.quick-actions-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    background: var(--bg-layer-1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.quick-action-btn:hover {
    background: var(--bg-layer-2);
    border-color: #e31937;
    transform: translateY(-2px);
}

.quick-action-btn .action-icon {
    font-size: 1.8rem;
}

.quick-action-btn .action-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* Dashboard Main Grid */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.dashboard-section {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.dashboard-section.full-width {
    grid-column: 1 / -1;
}

.section-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header-new h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.btn-view-all {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #e31937;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #e31937;
    color: #fff;
    border-color: #e31937;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-layer-1);
    border-radius: 6px;
    border-left: 3px solid #e31937;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--bg-layer-2);
    transform: translateX(4px);
}

/* Service Cards */
.service-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-layer-1);
    border-radius: 6px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    background: var(--bg-layer-2);
    border-color: #e31937;
    transform: translateX(4px);
}

.service-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.service-info {
    flex: 1;
}

.service-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem 0;
}

.service-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.service-arrow {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.service-card:hover .service-arrow {
    transform: translateX(4px);
    color: #e31937;
}

/* Portfolio and Lists */
.portfolio-content,
.deposits-list,
.linked-accounts-list {
    min-height: 100px;
}

.portfolio-table {
    width: 100%;
    border-collapse: collapse;
}

.portfolio-table th {
    background: var(--bg-layer-1);
    color: var(--text-secondary);
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.portfolio-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: #fff;
}

.portfolio-table tr:hover {
    background: var(--bg-layer-1);
}

.status-active {
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
}

.balance-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.balance-card {
    flex: 1;
    background: var(--bg-card);
    padding: 24px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--tesla-red);
    transition: border-color 0.2s;
}

.balance-card:hover {
    border-color: var(--tesla-red);
}

.balance-card h3 {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.balance-amount {
    font-size: 2.5rem;
    color: var(--tesla-red);
    font-weight: 800;
}

@keyframes countUp {
    from {
        opacity: 0;

    }
    to {
        opacity: 1;

    }
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.btn-action {
    padding: 0.75rem 1.5rem;
    background: var(--tesla-red);
    color: #fff;
    border: 2px solid var(--tesla-red);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.btn-action:hover {
    background: transparent;
    color: var(--tesla-red);
}

.btn-add-bank {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px dashed var(--border-muted);
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: border-color 0.2s, color 0.2s;
}

.btn-add-bank:hover {
    border-color: var(--tesla-red);
    color: var(--tesla-red);
}

/* User Menu */
.user-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-dashboard {
    padding: 0.6rem 1.2rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-muted);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-dashboard:hover {
    border-color: var(--tesla-red);
    color: var(--tesla-red);
    transform: translateY(-2px);
}

.btn-logout {
    padding: 0.6rem 1.2rem;
    background: var(--tesla-red);
    color: #fff;
    border: 2px solid var(--tesla-red);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-logout:hover {
    background: transparent;
    color: var(--tesla-red);
    transform: translateY(-2px);
}

/* Close dropdown when clicking outside */
body.dropdown-open {
    overflow: hidden;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* History Tables */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.history-table th,
.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.history-table th {
    background: var(--bg-layer-1);
    color: #e31937;
    font-weight: 600;
}

.history-table tr:hover {
    background: var(--bg-layer-1);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-completed {
    background: var(--tesla-red)20;
    color: var(--tesla-red);
}

.status-pending {
    background: var(--tesla-red)20;
    color: var(--tesla-red);
}

.status-rejected {
    background: #ff000020;
    color: #ff0000;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Auto-Typing Text Animation */
.typing-container {
    display: inline-block;
    position: relative;
}

.typing-text {
    display: inline-block;
    border-right: 3px solid #e31937;
    padding-right: 5px;
    animation: blink 0.7s step-end infinite;
    min-width: 20px;
}

@keyframes blink {
    0%, 50% {
        border-color: #e31937;
    }
    51%, 100% {
        border-color: transparent;
    }
}

.hero-content .typing-text {
    color: #e31937;
    font-weight: 700;
}

/* Bank Account Cards */
.bank-account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-muted);
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bank-account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--tesla-red);
}

.bank-account-card:hover {

    border-color: #e31937;
}

.bank-account-card.primary {
    border-color: #e31937;
}

.bank-account-card.primary::before {
    width: 8px;
}

.bank-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.bank-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.bank-detail-item {
    padding: 0.75rem;
    background: rgba(227, 25, 55, 0.1);
    border-radius: 4px;
    border: 1px solid var(--border-muted);
}

.bank-detail-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bank-detail-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Deposit Form Improvements */
.payment-section {
    background: rgba(227, 25, 55, 0.05);
    padding: 2rem;
    border-radius: 4px;
    border: 2px dashed #333;
    transition: all 0.3s ease;
}

.payment-section:hover {
    border-color: #e31937;
    background: rgba(227, 25, 55, 0.08);
}

.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-muted);
    border-radius: 4px;
    background: #0a0a0a;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #e31937;
    background: #000;
}

/* Dashboard Section Headers */
.section-header {
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: 4px;
    border-left: 5px solid #e31937;
    margin: 2rem 0 1.5rem;
}

.section-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

.section-header p {
    margin: 0.5rem 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Investment Cards Enhancement */
.investment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 24px;
    transition: border-color 0.2s;
}

.investment-card:hover {
    border-color: var(--tesla-red);
}

.investment-status {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.investment-status.active {
    background: rgba(0, 255, 0, 0.2);
    color: var(--tesla-red);
    border: 2px solid var(--tesla-red);
}

.investment-status.completed {
    background: rgba(0, 150, 255, 0.2);
    color: var(--tesla-red);
    border: 2px solid var(--tesla-red);
}

.investment-status.pending {
    background: rgba(255, 170, 0, 0.2);
    color: var(--tesla-red);
    border: 2px solid var(--tesla-red);
}

/* Container Alignment Improvements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    scroll-margin-top: 100px;
}

/* Better spacing and alignment */
.plans-grid,
.showcase-grid,
.stocks-grid {
    display: grid;
    gap: 2rem;
    align-items: stretch;
}

.plan-card,
.showcase-card,
.stock-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card ul {
    flex-grow: 1;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .dashboard-joystick {
        right: 10px;
        padding: 0.75rem 0.25rem;
        gap: 0.75rem;
    }

    .joystick-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .joystick-btn .joystick-label {
        display: none;
    }

    .menu-sidebar {
        width: 100%;
        right: -100%;
    }

    .chat-widget {
        width: calc(100% - 20px);
        height: 400px;
        bottom: 70px;
        right: 20px;
        left: 20px;
    }

    .balance-section {
        flex-direction: column;
    }

    .dashboard-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
    }

    .dashboard-header-content {
        padding: 1rem;
    }

    .dashboard-logo h2 {
        font-size: 1rem;
    }

    .balance-chip {
        padding: 0.5rem 0.8rem;
    }

    .balance-label {
        display: none;
    }

    .user-name-header {
        display: none;
    }

    .user-profile-dropdown {
        padding: 0.4rem;
    }

    .user-dropdown-menu {
        min-width: 280px;
        right: -10px;
    }

    .history-table {
        display: block;
        overflow-x: auto;
    }

    .history-table thead {
        display: none;
    }

    .history-table tr {
        display: block;
        margin-bottom: 1rem;
        background: var(--bg-layer-1);
        border-radius: 4px;
        padding: 1rem;
    }

    .history-table td {
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 0.5rem 0;
    }

    .history-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #e31937;
    }
}
/* ========================================
   ADMIN PANEL - CREDIT UNION STYLE
   ======================================== */

/* Admin Login Page */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-chrome);
    padding: 2rem;
}

.admin-login-form {
    background: var(--bg-card);
    border: 1px solid var(--tesla-red);
    border-radius: 12px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 0 20px rgba(232, 33, 39, 0.15);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-brand {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tesla-red);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.admin-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-form-group input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-layer-1);
    border: 1px solid var(--border-muted);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.admin-form-group input:focus {
    outline: none;
    border-color: var(--tesla-red);
    box-shadow: 0 0 0 3px rgba(232, 33, 39, 0.1);
}

.admin-login-btn {
    width: 100%;
    padding: 1rem;
    background: var(--tesla-red);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.admin-login-btn:hover:not(:disabled) {
    background: #c01d23;
    transform: translateY(-2px);
}

.admin-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-secure-label {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lock-icon {
    font-size: 0.9rem;
}

/* Admin Panel Container */
.admin-container {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
}

/* AdminNavbar */
.admin-navbar {
    background: var(--bg-chrome);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.admin-nav-brand {
    color: var(--tesla-red);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.admin-nav-links {
    display: flex;
    gap: 2rem;
}

.admin-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    font-weight: 500;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    border-bottom-color: var(--tesla-red);
}

.admin-nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.admin-balance-badge {
    background: var(--bg-layer-1);
    border: 1px solid var(--tesla-red);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-amount {
    font-size: 1rem;
    color: var(--tesla-red);
    font-weight: 700;
}

.admin-profile-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--tesla-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-profile-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(232, 33, 39, 0.5);
}

/* Admin Dropdown */
.admin-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--tesla-red);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.admin-dropdown-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.admin-dropdown-item:hover {
    background: var(--bg-layer-1);
    color: var(--tesla-red);
}

.admin-dropdown-divider {
    height: 1px;
    background: var(--border-muted);
}

/* Admin Content Area */
.admin-content {
    flex: 1;
    background: #0a0a0a;
    overflow-y: auto;
    padding: 20px;
    transition: all 0.3s ease;
}

.admin-section {
    margin-bottom: 2rem;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-section-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: var(--tesla-red);
    font-size: 2rem;
    font-weight: 700;
}

/* Credit Union Account Card */
.credit-union-card {
    background: var(--bg-card);
    border: 1px solid var(--tesla-red);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(232, 33, 39, 0.15);
    transition: all 0.3s;
}

.credit-union-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 33, 39, 0.25);
}

.card-header {
    border-bottom: 1px solid var(--border-muted);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.account-number {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Account Type Badges */
.account-badge-standard {
    background: rgba(150, 150, 150, 0.2);
    color: #999;
    border: 1px solid #999;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-badge-premium {
    background: rgba(232, 33, 39, 0.2);
    color: var(--tesla-red);
    border: 1px solid var(--tesla-red);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-badge-business {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--tesla-red);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-badge-credit {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid #ffaa00;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Balance Section */
.balance-section {
    margin: 1rem 0;
}

.balance-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.balance-hidden,
.balance-visible {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.balance-dots {
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.view-balance-btn {
    background: transparent;
    border: 1px solid var(--tesla-red);
    color: var(--tesla-red);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    width: fit-content;
}

.view-balance-btn:hover {
    background: var(--tesla-red);
    color: #fff;
}

.balance-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

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

.balance-label-sm {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.balance-amount {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tesla-red);
}

/* Card Info */
.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

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

.info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.view-account-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--tesla-red);
    color: var(--tesla-red);
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 1rem;
}

.view-account-btn:hover {
    background: var(--tesla-red);
    color: #fff;
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Activity Feed */
.activity-feed {
    background: var(--bg-card);
    border: 1px solid var(--border-muted);
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.activity-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-muted);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.activity-user {
    color: var(--text-primary);
    font-weight: 600;
}

.activity-amount {
    color: var(--tesla-red);
    font-weight: 700;
}

.activity-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.activity-status {
    padding: 0.1rem 0.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.status-completed {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.status-pending {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
}

.status-rejected {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

/* Transactions List */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-filters {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.transaction-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-muted);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.transaction-detail-card:hover {
    border-color: var(--tesla-red);
    box-shadow: 0 2px 8px rgba(227, 25, 55, 0.1);
}

.transaction-header {
    background: var(--bg-layer-1);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-muted);
}

.transaction-id {
    font-family: monospace;
    font-weight: 600;
    color: var(--text-primary);
}

.transaction-body {
    padding: 1.5rem;
}

.transaction-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.transaction-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.transaction-info .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.amount-value {
    color: var(--tesla-red);
    font-weight: 700;
    font-size: 1.1rem;
}

.type-deposit { color: #00ff00; font-weight: 600; }
.type-withdrawal { color: #ff5555; font-weight: 600; }
.type-transfer { color: #5599ff; font-weight: 600; }
.type-bonus { color: #ffaa00; font-weight: 600; }

.transaction-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-muted);
}

.btn-approve {
    flex: 1;
    background: #00aa00;
    border: none;
    color: #fff;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-approve:hover {
    background: #00cc00;
    transform: translateY(-1px);
}

.btn-reject {
    flex: 1;
    background: #cc0000;
    border: none;
    color: #fff;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-reject:hover {
    background: #ee0000;
    transform: translateY(-1px);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination button {
    background: var(--tesla-red);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    background: #c01d23;
}

.pagination span {
    color: var(--text-secondary);
}

.transaction-card {
    background: var(--bg-layer-1);
    border: 1px solid var(--border-muted);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.transaction-card:last-child {
    margin-bottom: 0;
}

/* Market Control */
.market-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.control-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    padding: 1.5rem;
}

.control-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.market-control-form,
.transfer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-select,
.admin-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-layer-1);
    border: 1px solid var(--border-muted);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
}

.admin-select:focus,
.admin-input:focus {
    outline: none;
    border-color: var(--tesla-red);
}

.admin-btn-primary {
    background: var(--tesla-red);
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.admin-btn-primary:hover {
    background: #c01d23;
    transform: translateY(-1px);
}

/* Admin Search Input */
.admin-search-input {
    padding: 0.75rem 1rem;
    background: var(--bg-layer-1);
    border: 1px solid var(--border-muted);
    border-radius: 8px;
    color: var(--text-primary);
    width: 300px;
}

.admin-search-input:focus {
    outline: none;
    border-color: var(--tesla-red);
}

/* Admin Modal */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.admin-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--tesla-red);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.admin-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-modal-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
}

.admin-modal-close {
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.admin-modal-close:hover {
    color: var(--tesla-red);
}

.admin-modal-body {
    padding: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-muted);
}

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

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 3000;
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    color: #00ff00;
}

.notification-error {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff0000;
}

.notification-info {
    background: rgba(232, 33, 39, 0.2);
    border: 1px solid var(--tesla-red);
    color: var(--tesla-red);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Data Message */
.no-data-message {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-style: italic;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Admin Panel */
@media (max-width: 1024px) {
    .admin-nav-left {
        gap: 1.5rem;
    }

    .admin-nav-links {
        gap: 1rem;
    }

    .admin-balance-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .admin-navbar {
        padding: 1rem;
    }

    .admin-nav-brand {
        font-size: 1rem;
    }

    .admin-nav-links {
        display: none;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .users-grid {
        grid-template-columns: 1fr;
    }

    .market-control-grid {
        grid-template-columns: 1fr;
    }

    .admin-search-input {
        width: 100%;
    }

    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #333;
        right: 0;
        transform: none !important;
        background: var(--bg-chrome);
    }

    .admin-sidebar.collapsed {
        height: 0;
        overflow: hidden;
    }

    .sidebar-toggle {
        left: auto;
        right: 20px;
        top: 15px;
    }

    .sidebar-toggle.sidebar-open {
        left: auto;
        right: 20px;
        top: 15px;
    }

    .admin-content {
        padding: 1rem;
    }
}


/* ========================================
   HOMEPAGE IMPROVEMENTS - MINIMAL STYLE
   ======================================== */

/* Minimal Action Buttons (No Emojis) */
.action-btn-minimal {
    background: transparent;
    border: 1px solid var(--tesla-red);
    color: var(--tesla-red);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn-minimal:hover {
    background: var(--tesla-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 33, 39, 0.3);
}

.action-label {
    font-size: 0.9rem;
}

/* Enhanced Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Modal Close Button for Mobile */
@media (max-width: 768px) {
    .close {
        width: 45px;
        height: 45px;
        font-size: 36px;
        right: 0.75rem;
        top: 0.75rem;
        background: rgba(232, 33, 39, 0.95);
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

/* Modal Backdrop Click to Close Enhancement */
.modal {
    cursor: pointer;
}

.modal .modal-content {
    cursor: default;
}

/* Cancel Button Styling */
.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
}

.btn-secondary:hover {
    background: var(--text-secondary);
    color: var(--bg-primary);
}

/* Navigation Support Phone */
.nav-support-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tesla-red);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    background: rgba(232, 33, 39, 0.1);
    border-radius: 6px;
    border: 1px solid var(--tesla-red);
}

.support-icon {
    flex-shrink: 0;
    stroke: var(--tesla-red);
}

.support-number {
    letter-spacing: 0.5px;
}

/* Footer Styles */
.footer {
    background: var(--bg-chrome);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--tesla-red);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--tesla-red);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    margin-right: 8px;
    vertical-align: middle;
    stroke: var(--tesla-red);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .nav-support-phone {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Chat Auto-Response & Countdown */
.chat-auto-response {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.auto-response-content p {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

#countdownTimer {
    color: var(--tesla-red);
    font-weight: 700;
    font-size: 1.1rem;
}

.countdown-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.countdown-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tesla-red), #ff4444);
    width: 100%;
    transition: width 1s linear;
}

/* Typing Indicator */
.typing-indicator {
    padding: 0.75rem 1rem;
    margin: 0.5rem 1rem;
    background: #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Admin Chat Panel Styles */
.admin-chat-section {
    background: var(--bg-card);
    border: 1px solid var(--border-muted);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chat-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.chat-ticket-card {
    background: var(--bg-layer-1);
    border: 1px solid var(--border-muted);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-ticket-card:hover {
    border-color: var(--tesla-red);
    box-shadow: 0 2px 8px rgba(227, 25, 55, 0.1);
}

.chat-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ticket-id {
    font-weight: 700;
    color: var(--tesla-red);
    font-family: monospace;
}

.ticket-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-open {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
}

.status-pending {
    background: rgba(255, 170, 0, 0.1);
    color: #ffaa00;
}

.chat-ticket-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-chat-window {
    display: none;
    background: var(--bg-layer-1);
    border: 1px solid var(--border-muted);
    border-radius: 8px;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.admin-chat-window.active {
    display: flex;
}

.admin-chat-header {
    background: var(--tesla-red);
    color: #fff;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #0a0a0a;
}

.admin-chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border-muted);
    gap: 0.5rem;
}

.admin-chat-input input {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-layer-1);
    border: 1px solid var(--border-muted);
    border-radius: 6px;
    color: var(--text-primary);
}

.admin-chat-input button {
    padding: 0.75rem 1.5rem;
    background: var(--tesla-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.admin-chat-input button:hover {
    background: #c01d23;
    transform: translateY(-1px);
}

/* User Management Section */
.user-search-section {
    background: var(--bg-card);
    border: 1px solid var(--border-muted);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-layer-1);
    border: 1px solid var(--border-muted);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
}

.search-btn {
    padding: 0.75rem 2rem;
    background: var(--tesla-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.search-btn:hover {
    background: #c01d23;
}

.user-details-card {
    background: var(--bg-layer-1);
    border: 1px solid var(--border-muted);
    border-radius: 8px;
    padding: 1.5rem;
    display: none;
}

.user-details-card.active {
    display: block;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: 6px;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-muted);
}

.btn-user-action {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-credit {
    background: #00aa00;
    color: #fff;
}

.btn-credit:hover {
    background: #00cc00;
}

.btn-debit {
    background: #ff8800;
    color: #fff;
}

.btn-debit:hover {
    background: #ffaa00;
}

.btn-block {
    background: #666;
    color: #fff;
}

.btn-block:hover {
    background: #888;
}

.btn-delete {
    background: #cc0000;
    color: #fff;
}

.btn-delete:hover {
    background: #ee0000;
}

.admin-sidebar {
    width: 300px;
    background: #1a1a1a;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.admin-sidebar.collapsed {
    width: 0;
    overflow: hidden;
    border-right: none;
}

.sidebar-toggle {
    position: fixed;
    left: 20px;
    top: 70px;
    background: #e31937;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar-toggle:hover {
    background: #c41530;
    transform: scale(1.1);
}

.sidebar-toggle.sidebar-open {
    left: 320px;
}