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

:root {
    --background: #1a1a2e;
    --card-bg: #16213e;
    --text: #eaeaea;
    --text-muted: #9e9e9e;
    --orange: #FF6B35;
    --orange-hover: #ff8555;
    --success: #4caf50;
    --error: #f44336;
    --border: #2d3561;
}

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

/* Navigation */
.navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 2rem;
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links .btn-primary {
    color: var(--text) !important;
}

/* Token Badge in Navbar */
.token-badge {
    padding: 0.5rem 1rem;
    background: var(--orange);
    color: var(--text);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Message Badge (Unread Count) */
.message-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--orange);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

/* Buttons */
.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-size: 0.95rem;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--orange-hover);
}

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

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

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

.btn-danger:hover {
    background: #d32f2f;
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 70px - 400px);
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 3px solid;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error);
    border-color: var(--error);
}

.alert-info {
    background: rgba(255, 107, 53, 0.1);
    color: var(--orange);
    border-color: var(--orange);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
}

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

.form-group textarea {
    min-height: 200px;
}

/* Message reply form styles */
.message-reply-form {
    width: 100%;
}

.message-form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.message-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.message-form-group textarea {
    width: 100%;
    height: 250px;
    min-height: 250px;
    padding: 1.5rem;
    font-size: 1.125rem;
    resize: vertical;
    box-sizing: border-box;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
}

.message-form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.message-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.message-form-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--orange);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.footer-section h4 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 700;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* Index/Landing Page */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
    transition: transform 0.2s;
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--orange);
}

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

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

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin: 4rem 0;
}

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

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Pricing Page */
.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: transform 0.2s;
}

.price-card:hover {
    transform: translateY(-4px);
}

.price-card.popular {
    border-color: var(--orange);
    border-width: 2px;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: var(--text);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features {
    list-style: none;
    margin: 2rem 0;
}

.features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

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

.price-card .btn {
    width: 100%;
    padding: 0.9rem;
    margin-top: 1.5rem;
}

.faq {
    max-width: 800px;
    margin: 4rem auto 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

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

.faq-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

/* Auth Pages */
.auth-card {
    max-width: 700px;
    margin: 3rem auto;
    padding: 3rem;
}

.auth-card h2 {
    text-align: center;
    color: var(--orange);
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
}

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

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

.dashboard-stat-card {
    text-align: center;
}

.dashboard-stat-card h3 {
    color: var(--orange);
}

.dashboard-stat-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text);
}

.dashboard-stat-label {
    color: var(--text-muted);
}

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

.dashboard-header h2 {
    color: var(--orange);
}

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

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Settings */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
}

.settings-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.settings-nav button,
.settings-nav .settings-nav-link {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.settings-nav button:hover,
.settings-nav .settings-nav-link:hover {
    color: var(--text);
}

.settings-nav button.active,
.settings-nav .settings-nav-link.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.settings-section {
    display: none;
    max-width: 600px;
    margin: 0 auto;
}

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

.stat-box {
    background: var(--background);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.stat-box p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);
}

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

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Legal Pages */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content section {
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-size: 2rem;
    color: var(--orange);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.75rem;
}

.legal-content h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 1.5rem 0 1rem;
}

.legal-content p {
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.legal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.legal-content a {
    color: var(--orange);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--orange-hover);
}

.legal-content strong {
    color: var(--orange);
    font-weight: 700;
}

/* Contact Page */
.contact-card {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.contact-info {
    max-width: 900px;
    margin: 3rem auto 0;
}

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

.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.contact-info-card h3 {
    color: var(--orange);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-info-card p {
    margin-bottom: 0.5rem;
    color: var(--text);
}

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

.contact-info-card a {
    color: var(--orange);
    text-decoration: none;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

/* FAQ Page */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    color: var(--orange);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.faq-item p {
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.faq-item ul {
    list-style: disc;
    margin-left: 2rem;
    color: var(--text);
}

.faq-item li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.faq-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 3rem;
}

.faq-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.faq-cta p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Admin Panel Styles */
:root {
    --admin-primary: #FF6B35;
    --admin-primary-dark: #ff8555;
    --admin-success: #10b981;
    --admin-warning: #f59e0b;
    --admin-danger: #ef4444;
    --admin-info: #3b82f6;
    --admin-bg: #1a1a2e;
    --admin-sidebar-bg: #16213e;
    --admin-card-bg: #16213e;
    --admin-border: #2d3561;
    --admin-text: #eaeaea;
    --admin-text-muted: #9e9e9e;
}

.admin-container {
    display: flex;
    min-height: 100vh;
    background: var(--admin-bg);
}

.admin-sidebar {
    width: 260px;
    background: var(--admin-sidebar-bg);
    padding: 0;
    border-right: 1px solid var(--admin-border);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.admin-sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    background: var(--admin-primary);
}

.admin-sidebar-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-nav {
    padding: 1.5rem 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--admin-text-muted);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.admin-nav-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--admin-text);
    border-left-color: var(--admin-primary);
}

.admin-nav-item.active {
    background: rgba(255, 107, 53, 0.15);
    color: var(--admin-primary);
    border-left-color: var(--admin-primary);
}

.admin-main {
    flex: 1;
    padding: 2rem 3rem;
    background: var(--admin-bg);
    overflow-y: auto;
}

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

.admin-header h1 {
    margin: 0;
    color: var(--admin-text);
    font-size: 2rem;
    font-weight: 700;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: var(--admin-card-bg);
    border-radius: 8px;
    border: 1px solid var(--admin-border);
}

.admin-user-info span {
    color: var(--admin-text);
    font-weight: 500;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.admin-stat-card {
    background: var(--admin-card-bg);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--admin-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.admin-stat-card h3 {
    color: var(--admin-text-muted);
    font-size: 0.875rem;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.admin-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--admin-primary);
    margin: 0 0 0.5rem 0;
}

.admin-stat-label {
    color: var(--admin-text-muted);
    font-size: 0.875rem;
}

.admin-table {
    width: 100%;
    background: var(--admin-card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--admin-border);
}

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

.admin-table th {
    background: var(--admin-sidebar-bg);
    padding: 1rem 1.25rem;
    text-align: left;
    color: var(--admin-text);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--admin-border);
    color: var(--admin-text);
    font-size: 0.925rem;
}

.admin-table tbody tr {
    transition: background 0.2s;
}

.admin-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--admin-success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--admin-warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--admin-danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--admin-info);
}

.badge-secondary {
    background: rgba(108, 117, 125, 0.15);
    color: #9e9e9e;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.cookie-text p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.5;
}

.cookie-link {
    color: #1a1a1a;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: var(--orange);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-accept {
    background: #1a1a1a;
    color: #fff;
}

.cookie-accept:hover {
    background: #333;
    transform: translateY(-1px);
}

.cookie-reject {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.cookie-reject:hover {
    background: #f5f5f5;
}

/* Custom Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

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

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.modal-body input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 1rem;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.modal-body input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-footer .btn {
    padding: 0.75rem 1.5rem;
    min-width: 100px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 968px) {
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .navbar {
        padding: 1rem 1.5rem;
    }

    .navbar-content {
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--card-bg);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 5rem 0 2rem;
        gap: 0;
        align-items: stretch;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0 !important;
    }

    .nav-links a,
    .nav-links .btn,
    .nav-links span {
        padding: 1rem 1.5rem;
        border-radius: 0;
        text-align: left;
        border-bottom: 1px solid var(--border);
        width: 100%;
        display: block;
    }

    .nav-links a:hover {
        background: rgba(255, 107, 53, 0.1);
    }

    .nav-links .token-badge {
        margin: 0.5rem 1.5rem;
        display: block !important;
        text-align: center;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        font-weight: 700;
        width: calc(100% - 3rem);
        box-sizing: border-box;
    }

    .nav-links .btn-primary,
    .nav-links .btn-secondary {
        margin: 0.5rem 1.5rem;
        border-radius: 6px;
        text-align: center;
        width: calc(100% - 3rem);
        box-sizing: border-box;
    }

    /* Container */
    .container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

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

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

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Feature Cards */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .price-card {
        padding: 2rem 1.5rem;
    }

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

    /* Dashboard */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-stat-value {
        font-size: 2.5rem;
    }

    /* Tables - Make them scrollable on mobile */
    .card {
        padding: 1rem;
        overflow-x: auto;
    }

    table {
        min-width: 600px;
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.5rem;
    }

    /* Auth Pages */
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
    }

    /* Page Headers */
    .page-header {
        padding: 2rem 0 1.5rem;
    }

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

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

    /* CTA Section */
    .cta-section {
        padding: 3rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    /* Footer */
    footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Buttons */
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Forms */
    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Settings */
    .settings-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .settings-nav button {
        flex-shrink: 0;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        padding: 1rem;
    }

    /* Modal */
    .modal-container {
        width: 95%;
        margin: 0 1rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-body p {
        font-size: 0.95rem;
    }

    /* Admin Panel - Make responsive */
    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--admin-border);
    }

    .admin-main {
        padding: 1.5rem 1rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        overflow-x: auto;
    }

    .admin-table table {
        min-width: 600px;
    }

    /* Card Detail View - Stack image and details vertically */
    .card-view-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .card-image-container img {
        max-height: 400px;
        object-fit: contain;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

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

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

    .stat-number {
        font-size: 2rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .dashboard-stat-value {
        font-size: 2rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    table {
        font-size: 0.8rem;
    }

    th, td {
        padding: 0.4rem;
    }
}
    th, td {
        padding: 0.4rem;
    }
}

/* Desktop/Mobile Visibility Utilities */
.mobile-only {
    display: none !important;
}

/* Mobile Dashboard Cards */
.dashboard-cards-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

.dashboard-card-mobile {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dashboard-card-mobile-preview {
    width: 100%;
    height: 200px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.dashboard-card-mobile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-card-mobile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
}

.dashboard-card-mobile-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-card-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dashboard-card-mobile-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--orange);
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    flex-shrink: 0;
}

.dashboard-card-mobile-title:hover {
    color: var(--orange-hover);
}

.dashboard-card-mobile-header .badge {
    flex-shrink: 0;
}

.dashboard-card-mobile-prompt {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dashboard-card-mobile-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dashboard-card-mobile-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.dashboard-card-mobile-actions .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    flex: 1;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 968px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}
