/* BlockBotter Stylesheet - Modern and Responsive */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --text-color: #111827;
    --text-muted: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* High-contrast dark base for accessibility */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #e5e7eb;                 /* gray-200 */
    background-color: #0b0f17;      /* near-black */
    line-height: 1.6;
}

/* Global link styles with underline for visibility */
a { color: #60a5fa; text-decoration: underline; }
a:hover { color: #93c5fd; }

/* Inputs and controls */
input, select, textarea { background: #111827; color: #e5e7eb; border: 1px solid #374151; }
input::placeholder, textarea::placeholder { color: #9ca3af; }
input:focus, select:focus, textarea:focus, .btn:focus, button:focus, a:focus { outline: 2px solid #22d3ee; outline-offset: 2px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(20, 25, 50, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 228, 255, 0.1) !important;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Contact Dropdown */
.contact-dropdown {
    position: relative;
    display: inline-block;
}

.contact-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.contact-btn:hover {
    background: var(--secondary-color);
}

.contact-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #1F1F3A;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.contact-menu.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #FFFFFF;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(0, 228, 255, 0.2);
}

.contact-menu a:last-child {
    border-bottom: none;
}

.contact-menu a:hover {
    background: rgba(0, 228, 255, 0.2);
    color: #00E4FF;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Features */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Pricing */
.pricing {
    padding: 4rem 0;
    background: white;
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Dashboard */
.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.plan-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    max-width: 500px !important; /* Standard professional size - not too long */
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

/* Dropdown/select fields should be standard size */
.form-group select {
    max-width: 400px !important; /* Standard dropdown size */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-checkboxes {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.form-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Links List */
.links-list,
.admin-links-list {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.link-item:last-child {
    border-bottom: none;
}

.link-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.link-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.link-actions {
    display: flex;
    gap: 0.5rem;
}

/* Captcha */
.captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.captcha-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.captcha-image img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.captcha-math,
.captcha-pattern {
    padding: 2rem;
    font-size: 1.5rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.link-display {
    word-break: break-all;
    color: var(--primary-color);
    font-family: monospace;
}

.api-key-display {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 0.25rem;
    margin: 0.5rem 0;
}

.api-key-display code {
    flex: 1;
    word-break: break-all;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-expired {
    background: #fef3c7;
    color: #92400e;
}

.payment-options {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 0.5rem;
}

.payment-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.api-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 0.5rem;
}

.api-info {
    margin-top: 0.5rem;
}

.section-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-tabs {
        flex-wrap: wrap;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Premium Modal Styles */
#premium-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.premium-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: all;
}

.premium-modal.show {
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #151e30 !important;
    border: 1px solid rgba(0, 228, 255, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 228, 255, 0.1) !important;
    max-width: 420px !important;
    width: 90% !important;
    max-height: 85vh !important;
    overflow: hidden;
    transform: scale(1) translateY(0) !important;
    transition: transform 0.25s ease, opacity 0.25s ease !important;
    z-index: 1;
}

.premium-modal.show .modal-content {
    transform: scale(1) translateY(0) !important;
}

.modal-header {
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid rgba(0, 228, 255, 0.2) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(145deg, #111a2e 0%, #0b1220 100%) !important;
}

.modal-icon {
    font-size: 20px !important;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(0, 228, 255, 0.5));
}

.modal-title {
    flex: 1;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-close {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-size: 20px !important;
    line-height: 1;
    color: #a0a0a0 !important;
    cursor: pointer;
    padding: 0;
    width: 28px !important;
    height: 28px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border-color: rgba(0, 228, 255, 0.3) !important;
}

.modal-body {
    padding: 1.25rem !important;
    color: #FFFFFF !important;
    line-height: 1.6;
    background: #151e30 !important;
}

.modal-message {
    margin: 0 0 1rem 0 !important;
    font-size: 14px !important;
    color: #c5c7d1 !important;
}

.modal-input {
    width: 100% !important;
    padding: 0.65rem 0.9rem !important;
    border: 1px solid rgba(0, 228, 255, 0.3) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: all 0.2s;
    font-family: inherit;
    background: rgba(42, 45, 87, 0.5) !important;
    color: #FFFFFF !important;
}

.modal-input::placeholder {
    color: #a0a0a0 !important;
    opacity: 0.7;
}

.modal-input:focus {
    outline: none !important;
    border-color: #00E4FF !important;
    box-shadow: 0 0 0 2px rgba(0, 228, 255, 0.2) !important;
    background: rgba(42, 45, 87, 0.7) !important;
}

.modal-footer {
    padding: 1rem 1.25rem !important;
    border-top: 1px solid rgba(0, 228, 255, 0.2) !important;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    background: linear-gradient(145deg, #111a2e 0%, #0b1220 100%) !important;
}

.modal-btn {
    padding: 0.5rem 1rem !important;
    border: none;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    min-width: 75px !important;
    min-height: 36px !important;
    max-height: 38px !important;
}

.modal-btn-primary {
    background: linear-gradient(90deg, #00bfff, #7b61ff) !important;
    color: #FFFFFF !important;
}

.modal-btn-primary:hover {
    background: linear-gradient(90deg, #00a3e6, #6a50e6) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.4) !important;
}

.modal-btn-primary:active {
    transform: translateY(0);
}

.modal-btn-secondary {
    background: rgba(42, 45, 87, 0.6) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(0, 228, 255, 0.3) !important;
}

.modal-btn-secondary:hover {
    background: rgba(42, 45, 87, 0.8) !important;
    border-color: rgba(0, 228, 255, 0.5) !important;
    color: #00E4FF !important;
}

/* Improved Toast notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInToast 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 4px solid;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
}

@keyframes slideInToast {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToast {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ========================= */
/* UI Refinements (Dashboard, Auth, Homepage) */
/* ========================= */

html { font-size: 15px; }

:root {
    --bb-bg-body: #0b1220;
    --bb-bg-card: #151e30;
    --bb-text-primary: #e7ebf3;
    --bb-text-secondary: #a0a0a0;
    --bb-border: rgba(255,255,255,0.08);
    --bb-shadow: 0 2px 6px rgba(0,0,0,0.3);
    --bb-radius: 8px;
}

body { background: var(--bb-bg-body); color: var(--bb-text-primary); }

/* Cards and sections */
.form-card, .section-card, .links-list, .admin-links-list, .captcha-card, .api-section, .payment-options {
    background: var(--bb-bg-card) !important;
    border: 1px solid var(--bb-border) !important;
    border-radius: var(--bb-radius) !important;
    padding: 1.25rem !important; /* 16–20px */
    box-shadow: var(--bb-shadow) !important;
}

/* Stats */
.stats-grid { gap: 1rem !important; margin-bottom: 1.5rem !important; }
.stat-card { background: var(--bb-bg-card) !important; border: 1px solid var(--bb-border) !important; border-radius: var(--bb-radius) !important; padding: 1rem !important; box-shadow: var(--bb-shadow) !important; }
.stat-card h3 { font-size: 1rem !important; font-weight: 600 !important; color: var(--bb-text-secondary) !important; text-transform: none !important; }
.stat-value { font-size: 1.6rem !important; font-weight: 800 !important; color: #00d4ff !important; }

/* Headings and labels */
h1, h2, h3, h4 { letter-spacing: 0.1px; text-transform: none; }
.form-card h2, .section-card h2, .section-card h3, .form-section h3 { font-size: 1.25rem !important; font-weight: 600 !important; }
.form-group label, label { font-size: 0.86rem !important; color: var(--bb-text-secondary) !important; font-weight: 600 !important; text-transform: none !important; }
.section-description, .form-help { color: var(--bb-text-secondary) !important; font-size: 0.9rem !important; }

/* Inputs */
input, select, textarea { background: #0f172a !important; color: var(--bb-text-primary) !important; border: 1px solid var(--bb-border) !important; border-radius: var(--bb-radius) !important; padding: 0.65rem 0.8rem !important; font-size: 0.95rem !important; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
input:focus, select:focus, textarea:focus { outline: none !important; border-color: #00d4ff !important; box-shadow: 0 0 0 3px rgba(0,212,255,0.12) !important; }

/* Buttons */
.btn { padding: 0.7rem 1.15rem !important; border-radius: 8px !important; font-weight: 700 !important; font-size: 0.95rem !important; transition: all 0.25s ease !important; }
.btn-primary { background: linear-gradient(135deg, #00d4ff 0%, #6a5acd 100%) !important; color: #001018 !important; border: none !important; box-shadow: 0 0 0 rgba(0,0,0,0) !important; }
.btn-primary:hover { filter: brightness(1.06) !important; transform: translateY(-1px) !important; box-shadow: 0 6px 18px rgba(0,212,255,0.25) !important; }
.btn-secondary { background: transparent !important; color: var(--bb-text-primary) !important; border: 1px solid var(--bb-border) !important; }
.btn-secondary:hover { border-color: #00d4ff !important; color: #00d4ff !important; }
.btn-small { padding: 0.5rem 0.9rem !important; font-size: 0.85rem !important; }

/* Tabs */
.dashboard-tabs { border-bottom: 1px solid var(--bb-border) !important; margin-bottom: 1.25rem !important; }
.tab-btn { color: var(--bb-text-secondary) !important; padding: 0.8rem 1.1rem !important; transition: color 0.25s ease, border-color 0.25s ease !important; }
.tab-btn.active, .tab-btn:hover { color: #00d4ff !important; border-bottom-color: #00d4ff !important; }

/* Navbar and header */
.navbar { background: linear-gradient(180deg, rgba(21,30,48,0.95) 0%, rgba(11,18,32,0.95) 100%) !important; box-shadow: var(--bb-shadow) !important; }
.nav-brand a { color: var(--bb-text-primary) !important; }
.nav-menu a { color: var(--bb-text-secondary) !important; }
.nav-menu a:hover { color: #00d4ff !important; }

/* Alerts */
.alert-success { background: linear-gradient(135deg, rgba(16,185,129,0.16) 0%, rgba(5,150,105,0.18) 100%) !important; color: #a7f3d0 !important; border: 1px solid rgba(16,185,129,0.35) !important; }
.alert-error { background: linear-gradient(135deg, rgba(239,68,68,0.12) 0%, rgba(153,27,27,0.14) 100%) !important; color: #fecaca !important; border: 1px solid rgba(239,68,68,0.35) !important; }

/* Footer */
.footer { background: #0d1629 !important; color: var(--bb-text-primary) !important; }

/* Spacing between sections */
.form-section { margin-top: 1.25rem !important; }
.form-section + .form-section { margin-top: 1.5rem !important; }

/* API key and misc containers */
.api-key-display { background: rgba(21,30,48,0.6) !important; border: 1px solid var(--bb-border) !important; border-radius: var(--bb-radius) !important; }

/* Hero / homepage */
.hero { background: linear-gradient(135deg, #0b1220 0%, #111a2d 60%, #151e30 100%) !important; color: var(--bb-text-primary) !important; }
.hero .subtitle { color: var(--bb-text-secondary) !important; }
.pricing { background: transparent !important; }
.pricing-card { background: var(--bb-bg-card) !important; border: 1px solid var(--bb-border) !important; border-radius: var(--bb-radius) !important; box-shadow: var(--bb-shadow) !important; }
.pricing-card .price { color: #00d4ff !important; font-weight: 800 !important; font-size: 2rem !important; }
.pricing-card .price span { color: var(--bb-text-secondary) !important; font-size: 0.9rem !important; }

/* Smooth transitions */
.form-card, .section-card, .links-list, .admin-links-list, .stat-card, .btn, input, select, textarea { transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease; }

/* Responsiveness */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr !important; }
    .dashboard-tabs { flex-wrap: wrap !important; }
    .form-row { grid-template-columns: 1fr !important; }
}

/* Balance styles across all dashboard tabs */
#tab-create .form-card,
#tab-script .form-card,
#tab-links .section-card,
#tab-analytics .section-card,
#tab-domains .section-card,
#tab-settings .section-card,
#tab-profile .section-card {
    background: var(--bb-bg-card) !important;
    border: 1px solid var(--bb-border) !important;
    border-radius: var(--bb-radius) !important;
    box-shadow: var(--bb-shadow) !important;
    padding: 1.25rem !important;
}

#tab-script .form-card h2,
#tab-links h2,
#tab-analytics h2,
#tab-domains h2,
#tab-settings h2,
#tab-profile h2 { font-size: 1.25rem !important; font-weight: 600 !important; }

/* Ensure uniform form widths */
#tab-create form,
#tab-script form,
#tab-settings .settings-container,
#tab-profile .profile-container,
#tab-domains .domains-container { max-width: 1200px; margin: 0 auto; }

/* Links tab items */
#tab-links .link-item { background: rgba(21,30,48,0.35); border: 1px solid var(--bb-border); border-radius: var(--bb-radius); margin-bottom: 0.75rem; }
#tab-links .link-info h4 { color: #00d4ff; }
#tab-links .link-actions .btn { padding: 0.5rem 0.8rem; }

/* Analytics cards and charts */
#analytics-charts .section-card, #analytics-overview .stat-card { background: var(--bb-bg-card) !important; border: 1px solid var(--bb-border) !important; }
#analytics-overview .stat-value { color: #00d4ff !important; }

/* Domains */
#domains-list .domain-item { background: rgba(21,30,48,0.35); border: 1px solid var(--bb-border); border-radius: var(--bb-radius); padding: 0.9rem 1rem; }

/* Profile */
#tab-profile label { color: var(--bb-text-secondary) !important; }
#tab-profile .api-key-display { background: rgba(21,30,48,0.6) !important; border: 1px solid var(--bb-border) !important; }

/* Settings */
#tab-settings .section-card .form-group { margin-bottom: 1rem; }

