:root {
    --primary-color: #4F46E5;
    --secondary-color: #6366F1;
    --accent-color: #EC4899;
    --dark-color: #1F2937;
    --light-color: #FFFFFF;
    --gray-color: #6B7280;
    --light-gray: #F3F4F6;
    --border-gray: #E5E7EB;
    --gradient: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gray);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
    animation: bounce 2s infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

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

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.cta-btn {
    background: var(--gradient);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

/* User Avatar Circle */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: 2px solid transparent;
}

.user-avatar:hover {
    transform: translateY(-2px);
    border-color: #A855F7;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8e5ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--light-gray);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-primary.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Music Wave Animation */
.music-wave {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 8px;
    height: 200px;
}

.wave-bar {
    width: 20px;
    background: var(--gradient);
    border-radius: 10px;
    animation: wave 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.3s; }
.wave-bar:nth-child(7) { animation-delay: 0.2s; }
.wave-bar:nth-child(8) { animation-delay: 0.1s; }

/* Features Section */
.features {
    padding: 5rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--light-gray);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* Preview Section (Landing Page) */
.preview-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8e5ff 100%);
}

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

.preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Layouts */
.sell-buy-page, .discover-page, .messages-page {
    min-height: 100vh;
    padding-top: 100px;
}

.page-header {
    text-align: center;
    padding: 2rem 0 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
}

/* Sell/Buy Page Styles */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.action-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--light-gray);
}

.action-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.action-card p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sell-card {
    border-left: 4px solid var(--primary-color);
}

.buy-card {
    border-left: 4px solid var(--accent-color);
}

/* Form Styles */
.form-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.form-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.ticket-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Success Section */
.success-section {
    text-align: center;
    padding: 3rem 0;
}

.success-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.success-card p {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Discover Page Styles */
.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.results-summary {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    color: var(--gray-color);
}

.marketplace-section {
    margin-bottom: 3rem;
}

.stats-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8e5ff 100%);
    border-radius: var(--border-radius);
}

/* Marketplace Section */
.marketplace {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8e5ff 100%);
}

.marketplace-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-controls {
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input[type="text"],
.search-bar input[type="date"],
.search-bar select {
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    min-width: 150px;
}

.search-bar input[type="text"]:focus,
.search-bar input[type="date"]:focus,
.search-bar select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-bar input[type="text"] {
    flex: 1;
    max-width: 300px;
}

.search-bar input[type="date"] {
    max-width: 150px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.ticket-card, .buy-request-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--light-gray);
}

.ticket-card:hover, .buy-request-card:hover {
    transform: translateY(-5px);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.event-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.ticket-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.ticket-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ticket-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.ticket-detail-icon {
    font-size: 1rem;
}

.ticket-quantity {
    background: var(--light-gray);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.buy-request-card {
    border-left: 4px solid var(--accent-color);
}

.request-header {
    margin-bottom: 1rem;
}

.request-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 0.5rem 0;
}

.max-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: var(--light-gray);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.close {
    color: var(--gray-color);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

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

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content input,
.modal-content textarea {
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-content textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-content .btn-primary {
    margin-top: 1rem;
    align-self: stretch;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

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

.footer-section a {
    color: #B2BEC3;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #636E72;
    color: #B2BEC3;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes wave {
    0%, 100% {
        height: 20px;
    }
    50% {
        height: 100px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

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

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

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

    .about-text h2 {
        font-size: 2rem;
    }

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

/* Messages Page Styles */
.messages-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    height: calc(100vh - 200px);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
}

.conversations-sidebar {
    background: #f8f9ff;
    border-right: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}

.conversations-header {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.conversations-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.conversation-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.conversation-item:hover {
    background: rgba(108, 92, 231, 0.1);
}

.conversation-item.active {
    background: var(--primary-color);
    color: white;
}

.conversation-item.active .conversation-meta {
    color: rgba(255, 255, 255, 0.8);
}

.conversation-user {
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.2;
    word-wrap: break-word;
}

.conversation-event {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0.4rem;
    line-height: 1.3;
    word-wrap: break-word;
}

.conversation-item.active .conversation-event {
    color: rgba(255, 255, 255, 0.9);
}

.conversation-meta {
    font-size: 0.8rem;
    color: var(--gray-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.2;
    margin-top: 0.2rem;
}

.unread-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Chat Area */
.chat-area {
    display: flex;
    flex-direction: column;
    background: white;
}

.no-conversation-selected {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-conversation-content {
    text-align: center;
    color: var(--gray-color);
}

.no-conversation-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.active-conversation {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9ff;
}

.chat-user-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.chat-user-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.messages-container-inner {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    position: relative;
}

.message.sent {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message.received {
    background: var(--light-gray);
    color: var(--dark-color);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

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

.message.system {
    background: #e8f5e8;
    color: #2d6a2d;
    align-self: center;
    max-width: 80%;
    text-align: center;
    border-radius: 10px;
    font-size: 0.9rem;
}

.price-offer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 0.5rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.price-offer-amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Message Input */
.message-input-area {
    border-top: 1px solid var(--light-gray);
    padding: 1rem;
    background: white;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark-color);
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.message-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.message-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.message-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Message Type Selector */
.message-type-selector {
    margin-bottom: 1rem;
}

.message-type-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.message-type-dropdown {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.message-type-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Input Containers */
.input-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.bank-details-form,
.ticket-details-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bank-details-form input,
.bank-details-form textarea,
.ticket-details-form input,
.ticket-details-form textarea {
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.bank-details-form input:focus,
.bank-details-form textarea:focus,
.ticket-details-form input:focus,
.ticket-details-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.bank-details-form textarea,
.ticket-details-form textarea {
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
}

/* Enhanced Message Styles */
.message-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.message.received .message-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.bank-details-display,
.ticket-details-display {
    font-size: 0.9rem;
    line-height: 1.4;
}

.bank-details-display div,
.ticket-details-display div {
    margin-bottom: 0.3rem;
}

.bank-details-display strong,
.ticket-details-display strong {
    font-weight: 600;
}

.additional-message {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-style: italic;
}

.message.received .additional-message {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.message-text {
    line-height: 1.4;
}

/* Message Type Specific Styling */
.message.bank-details {
    border-left: 4px solid #28a745;
}

.message.ticket-details {
    border-left: 4px solid #fd7e14;
}

.message.bank-details.sent {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.message.ticket-details.sent {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
}

.message.bank-details.received {
    background: #f8f9fa;
    border-left-color: #28a745;
}

.message.ticket-details.received {
    background: #fff8f0;
    border-left-color: #fd7e14;
}

/* Price Breakdown Styles */
.price-breakdown {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8f9ff;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
    font-size: 0.9rem;
}

.fee-calculation,
.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.25rem 0;
}

.fee-calculation {
    color: var(--gray-color);
}

.seller-earnings {
    font-weight: 600;
    color: var(--dark-color);
    border-top: 1px solid var(--light-gray);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.fee-amount,
.earnings-amount {
    font-weight: 600;
}

.earnings-amount {
    color: #27ae60;
    font-size: 1.1rem;
}

/* Ticket Actions */
.ticket-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.suggest-price-btn {
    flex: 1;
    font-size: 0.9rem;
}

/* Price Suggestion Modal */
.price-suggestion-info {
    background: #f8f9ff;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--light-gray);
}

.price-suggestion-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.seller-earnings-preview {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f0fff4;
    border-radius: var(--border-radius);
    border: 1px solid #27ae60;
    font-size: 0.9rem;
}

.seller-earnings-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.earnings-preview-label {
    color: var(--gray-color);
}

.earnings-preview-amount {
    font-weight: 600;
    color: #27ae60;
    font-size: 1rem;
}

/* Admin Dashboard Styles */
.admin-page {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: #f8f9ff;
}

.access-denied {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.access-denied-content {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.access-denied-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.admin-dashboard {
    padding: 2rem 0;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 50%;
}

.stat-content h3 {
    margin: 0;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-content p {
    margin: 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.admin-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-gray);
    margin: 2rem 0;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    background: var(--light-gray);
}

.section-header h2 {
    margin: 0;
    color: var(--dark-color);
}

.users-table-container,
.commissions-table-container {
    overflow-x: auto;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
}

.users-table,
.commissions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.users-table th,
.users-table td,
.commissions-table th,
.commissions-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
    font-size: 0.9rem;
}

.users-table th,
.commissions-table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.role-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.role-admin {
    background: #DC2626;
    color: white;
}

.role-rep {
    background: #D97706;
    color: white;
}

.role-user {
    background: var(--light-gray);
    color: var(--gray-color);
}

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

.status-earned {
    background: #27ae60;
    color: white;
}

.status-pending {
    background: #f39c12;
    color: white;
}

.status-paid {
    background: #3498db;
    color: white;
}

/* Database Viewer Styles */
.database-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.table-selector {
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    background: white;
    color: var(--dark-color);
    font-size: 0.9rem;
    min-width: 200px;
}

.table-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1);
}

.database-table-container {
    padding: 1.5rem;
}

.table-search {
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1);
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    max-height: 500px;
    overflow-y: auto;
}

.database-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.database-table th,
.database-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.database-table th {
    background: #f8f9ff;
    font-weight: 600;
    color: var(--dark-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.database-table tr:hover {
    background: #f8f9ff;
}

.table-info {
    margin-top: 1rem;
    padding: 0.5rem 0;
    color: var(--gray-color);
    font-size: 0.9rem;
    border-top: 1px solid var(--light-gray);
}

/* Settings page logout button */
.account-actions {
    padding: 1.5rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--gray-color);
    background: white;
    color: var(--gray-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.logout-btn:hover {
    background: var(--gray-color);
    color: white;
    border-color: var(--gray-color);
}

/* Hidden admin link shouldn't take up space */
#admin-link {
    display: none !important;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

.text-muted {
    color: var(--gray-color);
    font-style: italic;
}

/* Responsive Admin Styles */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .users-table,
    .commissions-table {
        font-size: 0.9rem;
    }

    .users-table th,
    .users-table td,
    .commissions-table th,
    .commissions-table td {
        padding: 0.75rem;
    }
}

/* Settings Page Styles */
.settings-page {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: #f8f9ff;
}

.login-required {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.login-required-content {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.login-required-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.settings-dashboard {
    padding: 2rem 0;
}

.settings-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    background: var(--light-gray);
}

.section-header h2 {
    margin: 0;
    color: var(--dark-color);
}

.section-description {
    margin: 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.user-role-badge {
    display: flex;
    align-items: center;
}

.profile-form,
.promotion-form {
    padding: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input:disabled {
    background: #f8f9ff;
    color: var(--gray-color);
    cursor: not-allowed;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray-color);
    font-size: 0.8rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.promotion-benefits {
    padding: 1.5rem;
    background: #f0fff4;
    border-top: 1px solid var(--light-gray);
}

.promotion-benefits h4 {
    margin: 0 0 1rem 0;
    color: var(--dark-color);
}

.promotion-benefits ul {
    margin: 0;
    padding-left: 1.5rem;
}

.promotion-benefits li {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.account-stats {
    padding: 1.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.stat-label {
    font-weight: 600;
    color: var(--dark-color);
}

.stat-value {
    font-weight: 600;
    color: var(--primary-color);
}

.stat-value.active {
    color: #27ae60;
}

.danger-zone {
    border: 2px solid #e74c3c;
}

.danger-zone .section-header {
    background: #ffebee;
    border-bottom-color: #e74c3c;
}

.danger-actions {
    padding: 1.5rem;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.success-content {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Responsive Settings Styles */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .user-role-badge {
        justify-content: center;
    }

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

    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* QR Code Styles */
.qr-content {
    text-align: center;
}

.qr-code-placeholder {
    width: 200px;
    height: 200px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9ff;
    position: relative;
}

.qr-grid {
    width: 150px;
    height: 150px;
    background-image:
        repeating-linear-gradient(0deg, var(--dark-color), var(--dark-color) 3px, transparent 3px, transparent 6px),
        repeating-linear-gradient(90deg, var(--dark-color), var(--dark-color) 3px, transparent 3px, transparent 6px);
    opacity: 0.8;
}

.ticket-transfer-info {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    text-align: left;
}

.ticket-transfer-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
}

.ticket-transfer-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Responsive Design for Messages */
@media (max-width: 768px) {
    .messages-container {
        grid-template-columns: 1fr;
        height: calc(100vh - 150px);
    }

    .conversations-sidebar {
        display: none;
    }

    .conversations-sidebar.mobile-open {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
    }

    .message {
        max-width: 85%;
    }

    .quick-actions {
        justify-content: center;
    }
}

/* University Search Dropdown */
.university-search-container {
    position: relative;
    width: 100%;
}

.university-search-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.university-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.university-search-input.has-results {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.university-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.university-option {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--light-gray);
    transition: background-color 0.2s ease;
}

.university-option:last-child {
    border-bottom: none;
}

.university-option:hover,
.university-option.highlighted {
    background: var(--light-gray);
}

.university-option.selected {
    background: var(--primary-color);
    color: white;
}

.university-search-placeholder {
    color: var(--gray-color);
    font-style: italic;
}

.other-university-container {
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease;
}

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

.university-option.other-option {
    background: var(--light-gray);
    border-top: 1px solid var(--primary-color);
    font-style: italic;
    color: var(--primary-color);
}

.no-universities {
    padding: 0.75rem;
    color: var(--gray-color);
    text-align: center;
    font-style: italic;
}

/* Loading spinner for university search */
.university-search-loading {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--light-gray);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Responsive adjustments for university dropdown */
@media (max-width: 768px) {
    .university-dropdown {
        max-height: 150px;
    }

    .university-option {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* Google OAuth Authentication Styles */
.auth-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.auth-divider {
    text-align: center;
    color: var(--gray-color);
    font-size: 0.9rem;
    position: relative;
    margin: 0.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--light-gray);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #dadce0;
    background: white;
    color: #3c4043;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #c6c9cc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.btn-google:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-google svg {
    flex-shrink: 0;
}

/* Responsive adjustments for auth options */
@media (max-width: 768px) {
    .auth-options {
        gap: 0.75rem;
    }

    .btn-google {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Admin navigation consistency - prevent layout shifts */
#admin-link {
    /* Use visibility instead of display to maintain layout position */
    transition: opacity 0.3s ease;
    /* Ensure admin link starts hidden to prevent flash */
    display: none;
}

#admin-link.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    width: 0;
    padding: 0;
    margin: 0;
}

#admin-link.visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Fallback for legacy display-based hiding */
#admin-link[style*="display: none"] {
    display: none !important;
}

#admin-link[style*="display: block"] {
    display: block !important;
}

/* Prevent navigation layout shifts */
.nav-menu {
    /* Ensure consistent spacing even when admin link appears/disappears */
    min-height: fit-content;
}

.nav-menu li {
    /* Maintain consistent list item spacing */
    flex-shrink: 0;
}

/* Admin Dashboard Status Badges */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.status-badge.verified {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.not-verified {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Text muted for empty values */
.text-muted {
    color: #6c757d;
    font-style: italic;
}

/* Admin table responsive improvements */
.users-table-container {
    overflow-x: auto;
}

.users-table {
    min-width: 800px; /* Ensure table doesn't get too cramped with new columns */
}

@media (max-width: 768px) {
    .users-table {
        min-width: 600px;
        font-size: 0.85rem;
    }

    .status-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* ===== AUTHENTICATION PAGES ===== */
.auth-page {
    min-height: 100vh;
    padding: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.auth-container {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 100%;
    margin: 2rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.auth-header h1 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.auth-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.auth-form-container {
    padding: 3rem;
}

.auth-form .form-group {
    margin-bottom: 2rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn-google {
    background: white;
    color: #333;
    border: 2px solid #e1e5e9;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #d0d7de;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
    z-index: 1;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

.auth-footer p {
    margin: 0.5rem 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Sign-up CTA Section */
.signup-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e1e5e9;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.signup-cta-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 700;
}

.signup-cta-content p {
    margin: 0 0 1.5rem 0;
    color: var(--gray-color);
    font-size: 1rem;
    line-height: 1.4;
}

.signup-btn {
    background: var(--secondary-color) !important;
    color: white !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.signup-btn:hover {
    background: #e67e22 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}

/* Mobile auth styles */
@media (max-width: 768px) {
    .auth-page {
        padding: 0;
        min-height: 100vh;
    }

    .auth-container {
        margin: 1rem;
        max-width: none;
    }

    .auth-header {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-header p {
        font-size: 1rem;
    }

    .auth-form-container {
        padding: 2rem 1.5rem;
    }

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

    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }

    .auth-footer {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .signup-cta {
        margin-top: 1.5rem;
        padding: 1.5rem;
    }

    .signup-cta-content h3 {
        font-size: 1.2rem;
    }

    .signup-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

/* Stripe Connect Management Styles */
.stripe-accounts-container {
    padding: 1.5rem;
}

.stripe-accounts-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.stripe-accounts-table th,
.stripe-accounts-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.stripe-accounts-table th {
    background: #f8f9ff;
    font-weight: 600;
    color: var(--dark-color);
}

.stripe-accounts-table tr:hover {
    background: #f8f9ff;
}

.stripe-accounts-table code {
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

.stripe-tools {
    padding: 1.5rem;
    border-top: 1px solid var(--light-gray);
    background: #f8f9ff;
}

.stripe-tools h3 {
    margin: 0 0 1rem 0;
    color: var(--dark-color);
}

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

.tool-card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tool-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
}

.tool-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
}

.tool-content p {
    margin: 0 0 1rem 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Stripe status badges */
.status-badge.status-verified {
    background: #e8f5e8;
    color: #2d5a2d;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-restricted {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.status-not-connected {
    background: #f8f9fa;
    color: #6c757d;
}

.status-badge.status-unknown {
    background: #e9ecef;
    color: #495057;
}