/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #00d4ff;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #3d3d3d;
    --success-color: #00ff88;
    --error-color: #ff4d4d;
    --background-color: #0a0a0a;
    --card-background: #1a1a1a;
    --card-bg: #2a2a2a;
    --hero-gradient: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.8) 50%, rgba(0, 0, 0, 0.9) 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.9) 50%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-gradient);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 0;
}

/* Hero Header */
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 60px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-color);
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.hero-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 15px;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* User profile in nav */
.nav-user {
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.user-welcome {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-arrow {
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 180px;
    overflow: hidden;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-color);
}

/* Hero Body */
.hero-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hero Visual - Fighter Cards */
.hero-visual {
    animation: fadeInRight 1s ease;
}

.fighter-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fighter-card {
    background: var(--card-background);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.fighter-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.fighter-1 .fighter-image {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%),
        url('https://images.pexels.com/photos/4761800/pexels-photo-4761800.jpeg?auto=compress&cs=tinysrgb&w=600') center/cover;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.fighter-1 .fighter-image::after {
    content: '🥊';
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

.fighter-2 .fighter-image {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%),
        url('https://images.pexels.com/photos/209948/pexels-photo-209948.jpeg?auto=compress&cs=tinysrgb&w=600') center/cover;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.fighter-2 .fighter-image::after {
    content: '📺';
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

.fighter-info {
    padding: 20px;
}

.fighter-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.fighter-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--secondary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

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

.feature-item {
    background: var(--card-background);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.feature-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0.3;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-item p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Footer */
.footer {
    background: var(--primary-color);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-background);
    border-radius: 12px;
    padding: 25px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.3s ease;
}

/* Two-column layout for larger screens */
@media (min-width: 768px) {
    .modal-content {
        max-width: 700px;
    }
    
    .form-row {
        display: flex;
        gap: 15px;
    }
    
    .form-row .form-group {
        flex: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent-color);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    color: var(--accent-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form.disabled {
    display: none !important;
}

.auth-form h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-color);
}

/* Form Groups */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Form Footer */
.form-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #00b8e6;
}

/* Social Login Divider */
.social-divider {
    display: flex;
    align-items: center;
    margin: 18px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-divider span {
    padding: 0 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Login Buttons */
.social-login-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex: 1;
    min-width: 110px;
    max-width: 150px;
}

.btn-social .social-icon {
    flex-shrink: 0;
}

.btn-social span {
    white-space: nowrap;
}

/* Google Button */
.btn-google {
    background: #ffffff;
    color: #333333;
    border-color: #dadce0;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #4285F4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    transform: translateY(-2px);
}

/* Facebook Button */
.btn-facebook {
    background: #1877F2;
    color: #ffffff;
    border-color: #1877F2;
}

.btn-facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
    transform: translateY(-2px);
}

.btn-facebook .social-icon path {
    fill: #ffffff;
}

/* Discord Button */
.btn-discord {
    background: #5865F2;
    color: #ffffff;
    border-color: #5865F2;
}

.btn-discord:hover {
    background: #4752c4;
    border-color: #4752c4;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

.btn-discord .social-icon path {
    fill: #ffffff;
}

.btn-github {
    background: #24292e;
    color: white;
    border: 1px solid #24292e;
}

.btn-github:hover {
    background: #2f363d;
    border-color: #2f363d;
}

.btn-github .social-icon path {
    fill: #ffffff;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-featured {
    border-color: var(--primary-color);
    background: rgba(229, 62, 62, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-color);
}

.price-period {
    font-size: 16px;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-footer {
    margin-top: auto;
    padding-top: 16px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check {
    color: #10b981;
    font-weight: bold;
}

.pricing-features .x {
    color: #6b7280;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    opacity: 0.6;
}

.btn-block {
    width: 100%;
}

/* Responsive Social Buttons */
@media (max-width: 480px) {
    .social-login-buttons {
        flex-direction: column;
    }
    
    .btn-social {
        max-width: none;
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        order: -1;
    }

    .fighter-cards {
        grid-template-columns: 1fr;
    }

    .hero-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-card,
    .feature-item {
        padding: 30px 20px;
    }
}

/* ============================================
   DASHBOARD STYLES (Broker & Player)
   ============================================ */

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info span {
    color: var(--text-muted);
}

.logout-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    border-color: var(--error-color);
    color: var(--error-color);
}

/* Dashboard Container */
.dashboard-container {
    display: none;
}

.dashboard-container.active {
    display: block;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Dashboard Card */
.dashboard-card {
    background: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    margin: 0;
}

.card-content {
    padding: 25px;
}

.card-content p {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.card-content strong {
    color: var(--text-color);
}

.card-action {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

/* Status Badges */
.status-active {
    color: var(--success-color);
    font-weight: 600;
}

.status-inactive {
    color: var(--error-color);
    font-weight: 600;
}

.status-pending {
    color: #ffa500;
    font-weight: 600;
}

/* API Documentation Section */
.api-docs {
    background: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 50px;
}

.api-docs .card-title {
    padding: 0 0 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.api-docs .card-content {
    padding: 0;
}

/* API Endpoint */
.api-endpoint {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
}

.api-endpoint:last-child {
    margin-bottom: 0;
}

.api-endpoint h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.api-method {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 10px;
}

.api-method.get {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-color);
}

.api-method.post {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success-color);
}

.api-method.put {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.api-method.delete {
    background: rgba(255, 77, 77, 0.2);
    color: var(--error-color);
}

.api-url {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
}

.api-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 15px 0;
    line-height: 1.6;
}

.api-endpoint pre {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 15px;
    overflow-x: auto;
}

.api-endpoint code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-color);
    line-height: 1.5;
}

/* Form Styles in Dashboard */
.dashboard-card .form-group {
    margin-bottom: 20px;
}

.dashboard-card .form-group:last-child {
    margin-bottom: 0;
}

.dashboard-card .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dashboard-card .form-group input,
.dashboard-card .form-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.dashboard-card .form-group input:focus,
.dashboard-card .form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.dashboard-card .form-group select[multiple] {
    min-height: 120px;
}

.dashboard-card .form-group select[multiple] option {
    padding: 8px;
    background: var(--secondary-color);
}

/* Notification Toast */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1001;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.notification.success {
    background: var(--success-color);
    color: var(--primary-color);
}

.notification.error {
    background: var(--error-color);
    color: var(--text-color);
}

.notification.info {
    background: var(--accent-color);
    color: var(--primary-color);
}

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

/* Modal Styles for Dashboard */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-background);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.modal-body {
    padding: 25px;
}

.modal-body pre {
    background: var(--secondary-color);
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.5;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: var(--accent-color);
}

/* Dashboard Footer */
.dashboard-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Dashboard */
@media (max-width: 968px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .api-docs {
        padding: 20px;
    }
    
    .api-endpoint {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-title {
        font-size: 1.6rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .api-url {
        display: block;
        margin-top: 10px;
        word-break: break-all;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 20px 0;
    }
    
    .dashboard-title {
        font-size: 1.4rem;
    }
    
    .card-content,
    .card-action {
        padding: 20px;
    }
    
    .api-endpoint {
        padding: 15px;
    }
    
    .api-endpoint pre {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* ============================================
   PLAYER DASHBOARD SPECIFIC STYLES
   ============================================ */

/* Balance Display in Header */
.balance-display {
    background: #1a5a7a !important;
    padding: 8px 16px;
    border-radius: 20px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid #2a7a9a;
}

/* Video Container */
.video-container {
    background: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    overflow: hidden;
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.video-header .card-title {
    padding: 0;
    border-bottom: none;
    margin: 0;
}

/* Stream Status Indicator */
.stream-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stream-status.status-live {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
    animation: pulse-live 2s infinite;
}

.stream-status.status-buffering {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
}

.stream-status.status-reconnecting {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    animation: pulse-reconnect 1s infinite;
}

.stream-status.status-error {
    background: rgba(255, 77, 77, 0.15);
    color: var(--error-color);
}

.stream-status.status-offline {
    background: rgba(160, 160, 160, 0.15);
    color: var(--text-muted);
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes pulse-reconnect {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.video-container .card-title {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-info {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid var(--border-color);
}

.video-info p {
    color: var(--text-muted);
    margin: 0;
}

/* Betting Container */
.betting-container {
    background: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    overflow: hidden;
}

.betting-container .card-title {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.betting-form {
    padding: 25px;
}

/* Betting Options */
.betting-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.betting-option {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.betting-option:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.betting-option.selected {
    border-color: var(--accent-color);
    background: rgba(0, 212, 255, 0.1);
}

.betting-option .outcome-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.betting-option .outcome-odds {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Bet Summary */
.bet-summary h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.bet-summary p {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.bet-summary strong {
    color: var(--text-color);
}

/* Recent Bets List */
.bets-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bets-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.bets-list li:last-child {
    border-bottom: none;
}

.bet-info {
    flex: 1;
}

.bet-info .bet-match {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.bet-info .bet-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.bet-amount {
    text-align: right;
}

.bet-amount .amount {
    font-weight: 600;
    color: var(--text-color);
}

.bet-amount .status {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.bet-amount .status.won {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success-color);
}

.bet-amount .status.lost {
    background: rgba(255, 77, 77, 0.2);
    color: var(--error-color);
}

.bet-amount .status.pending {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

/* Upcoming Matches List */
.matches-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.matches-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.matches-list li:last-child {
    border-bottom: none;
}

.match-teams {
    flex: 1;
}

.match-teams .team-names {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.match-teams .match-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.match-odds {
    display: flex;
    gap: 10px;
}

.match-odds .odd {
    background: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 6px;
    text-align: center;
    min-width: 60px;
}

.match-odds .odd-value {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.95rem;
}

.match-odds .odd-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Card Action with Multiple Buttons */
.card-action {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-action .btn {
    flex: 1;
    min-width: 120px;
}

/* Statistics Highlight */
#profit-loss.positive {
    color: var(--success-color);
}

#profit-loss.negative {
    color: var(--error-color);
}

/* Responsive Player Dashboard */
@media (max-width: 768px) {
    .video-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .video-info .btn {
        width: 100%;
    }
    
    .betting-options {
        grid-template-columns: 1fr;
    }
    
    .match-odds {
        width: 100%;
        justify-content: space-between;
    }
    
    .balance-display {
        display: none;
    }
}

@media (max-width: 480px) {
    .video-wrapper {
        aspect-ratio: 4 / 3;
    }
    
    .match-teams .team-names {
        font-size: 0.9rem;
    }
    
    .match-odds .odd {
        padding: 6px 10px;
        min-width: 50px;
    }
}
/* ============================================
   VIDEO OVERLAY STYLES
   For web player overlay system
   ============================================ */

/* Overlay Container - positioned over video */
.overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through to video controls */
    z-index: 10;
    overflow: hidden;
    /* Transform origin for scaling */
    transform-origin: top left;
}

/* Overlay Iframe - contains the template
   Templates are designed for 1920x1080, so we use fixed dimensions
   and scale via CSS transform to fit the video container
*/
.overlay-iframe {
    width: 1920px;
    height: 1080px;
    border: none;
    background: transparent;
    pointer-events: auto; /* Re-enable pointer events for overlay content */
    transform-origin: top left;
    /* Scale will be applied via JavaScript based on video size */
}

/* Overlay hidden state */
.overlay-container.hidden {
    display: none;
}

/* Overlay fade transition */
.overlay-container.fade-transition {
    transition: opacity 0.5s ease-in-out;
}

.overlay-container.fade-out {
    opacity: 0;
}

/* Overlay sizing modes */
.overlay-container.aspect-16-9 {
    aspect-ratio: 16 / 9;
}

.overlay-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

/* Overlay loading state */
.overlay-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: overlay-spin 1s linear infinite;
}

@keyframes overlay-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Overlay error state */
.overlay-container.error::after {
    content: 'Overlay Error';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 77, 77, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Video wrapper needs relative positioning for overlay */
.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;
}

/* Ensure video stays behind overlay */
.video-wrapper video {
    position: relative;
    z-index: 1;
}

/* Overlay toggle button */
#overlay-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#overlay-toggle-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Overlay debug info */
.overlay-debug {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
    z-index: 100;
    pointer-events: none;
}

/* Overlay template specific styles */
/* These match the Qt overlay template styles */

/* News ticker animation */
@keyframes ticker-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.ticker-text {
    animation: ticker-scroll 20s linear infinite;
}

/* Pulse animation for live indicators */
@keyframes overlay-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.overlay-live-indicator {
    animation: overlay-pulse 1.5s ease-in-out infinite;
}

/* Fade in animation for overlay content */
@keyframes overlay-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overlay-fade-in {
    animation: overlay-fade-in 0.5s ease-out;
}

/* Slide in from left */
@keyframes overlay-slide-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.overlay-slide-left {
    animation: overlay-slide-left 0.5s ease-out;
}

/* Slide in from right */
@keyframes overlay-slide-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.overlay-slide-right {
    animation: overlay-slide-right 0.5s ease-out;
}

/* Scale in animation */
@keyframes overlay-scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.overlay-scale-in {
    animation: overlay-scale-in 0.3s ease-out;
}

/* Responsive overlay adjustments */
@media (max-width: 768px) {
    .overlay-container {
        /* Smaller overlays on mobile */
        font-size: 0.85em;
    }
    
    .overlay-debug {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .overlay-container {
        font-size: 0.75em;
    }
    
    #overlay-toggle-btn {
        /* Show toggle button on mobile for overlay control */
        display: inline-block;
        padding: 6px 12px;
        font-size: 0.8rem;
        margin-left: 5px;
    }
}

/* Fullscreen overlay adjustments */
.video-container:fullscreen .overlay-container,
.video-container:-webkit-full-screen .overlay-container,
.video-container:-moz-full-screen .overlay-container,
.video-container:-ms-fullscreen .overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

/* Picture-in-picture mode - hide overlay */
.video-wrapper:has(video:picture-in-picture) .overlay-container {
    display: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .overlay-container {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .overlay-iframe {
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .overlay-container,
    .overlay-fade-in,
    .overlay-slide-left,
    .overlay-slide-right,
    .overlay-scale-in,
    .ticker-text,
    .overlay-live-indicator {
        animation: none;
        transition: none;
    }
}

/* ============================================
   Profile and Wallet Styles
   ============================================ */

/* Profile Overview */
.profile-overview {
    margin-bottom: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color, #00d4ff);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.avatar-btn {
    font-size: 0.85rem;
    padding: 8px 16px;
}

.profile-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: var(--text-color, #fff);
}

.profile-info p {
    margin: 5px 0;
    color: var(--text-muted, #aaa);
}

/* Wallet Overview */
.wallet-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.wallet-balance {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-color, #00d4ff), var(--secondary-color, #2d2d2d));
    border-radius: 12px;
}

.wallet-balance h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: var(--text-muted, #aaa);
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color, #fff);
    margin: 0;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: var(--secondary-color, #2d2d2d);
    border-radius: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted, #aaa);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color, #fff);
}

.wallet-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Transaction List */
.transaction-filters {
    margin-bottom: 20px;
}

.transaction-filters select {
    padding: 10px 15px;
    background: var(--secondary-color, #2d2d2d);
    border: 1px solid var(--border-color, #3d3d3d);
    border-radius: 6px;
    color: var(--text-color, #fff);
    font-size: 0.9rem;
}

.transaction-list {
    max-height: 400px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--secondary-color, #2d2d2d);
    border-radius: 8px;
    border-left: 4px solid transparent;
}

.transaction-item.credit {
    border-left-color: var(--success-color, #00ff88);
}

.transaction-item.debit {
    border-left-color: var(--error-color, #ff4d4d);
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.transaction-type {
    font-weight: 600;
    text-transform: capitalize;
    color: var(--text-color, #fff);
}

.transaction-date {
    font-size: 0.85rem;
    color: var(--text-muted, #aaa);
}

.transaction-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.transaction-description {
    font-size: 0.85rem;
    color: var(--text-muted, #aaa);
}

.transaction-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: capitalize;
}

.status-completed, .status-success {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success-color, #00ff88);
}

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

.status-failed, .status-cancelled {
    background: rgba(255, 77, 77, 0.2);
    color: var(--error-color, #ff4d4d);
}

.transaction-amount {
    font-size: 1.1rem;
    font-weight: 600;
}

.transaction-amount.positive {
    color: var(--success-color, #00ff88);
}

.transaction-amount.negative {
    color: var(--error-color, #ff4d4d);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.page-info {
    color: var(--text-muted, #aaa);
    font-size: 0.9rem;
}

/* Form Hints */
.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted, #aaa);
    margin-top: 5px;
}

/* Message Display */
.message {
    padding: 12px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 0.9rem;
}

.message.success {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success-color, #00ff88);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.message.error {
    background: rgba(255, 77, 77, 0.2);
    color: var(--error-color, #ff4d4d);
    border: 1px solid rgba(255, 77, 77, 0.3);
}

/* Avatar Preview */
.avatar-preview-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

.toast.success {
    background: var(--success-color, #00ff88);
    color: #000;
}

.toast.error {
    background: var(--error-color, #ff4d4d);
}

.toast.info {
    background: var(--accent-color, #00d4ff);
    color: #000;
}

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

/* Small Button Variant */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background: var(--border-color, #3d3d3d);
    margin: 8px 0;
}

/* Modal Improvements */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--primary-color, #1a1a1a);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color, #3d3d3d);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted, #aaa);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-color, #fff);
}

.modal-body {
    padding: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .wallet-overview {
        flex-direction: column;
    }
    
    .wallet-balance {
        min-width: 100%;
    }
    
    .transaction-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .transaction-info,
    .transaction-details {
        align-items: center;
    }
}
