/* Rishtee - Premium Matrimonial System - Main Stylesheet */

/* ===== GLOBAL VARIABLES & RESET ===== */
:root {
    /* Color Palette */
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Respect user reduced motion preference to cut heavy animations on mobile */
@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-4);
    color: var(--gray-900);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-4);
    color: var(--gray-600);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== LAYOUT COMPONENTS ===== */

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-4);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--spacing-3));
}

.col {
    flex: 1;
    padding: 0 var(--spacing-3);
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ===== CARD COMPONENTS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: var(--spacing-6);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.card-body {
    padding: var(--spacing-6);
}

.card-footer {
    padding: var(--spacing-6);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-2);
}

.card-subtitle {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-bottom: var(--spacing-4);
}

/* Premium Card Styles */
.card-premium {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
}

.card-premium .card-title,
.card-premium .card-subtitle {
    color: var(--white);
}

.card-stats {
    text-align: center;
    padding: var(--spacing-8);
}

.card-stats .stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.card-stats .stat-label {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== BUTTON COMPONENTS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3) var(--spacing-6);
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    user-select: none;
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

/* Button Variants */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--gray-600);
    border-color: var(--gray-600);
    color: var(--white);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--gray-700);
    border-color: var(--gray-700);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--white);
}

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

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    background-color: var(--gray-100);
    border-color: var(--gray-100);
    color: var(--gray-700);
}

.btn-light:hover:not(:disabled) {
    background-color: var(--gray-200);
    border-color: var(--gray-200);
}

/* Button Sizes */
.btn-sm {
    padding: var(--spacing-2) var(--spacing-4);
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--font-size-base);
}

.btn-block {
    width: 100%;
}

/* ===== FORM COMPONENTS ===== */
.form-group {
    margin-bottom: var(--spacing-5);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--spacing-2);
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--gray-700);
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control.is-invalid {
    border-color: var(--error-color);
}

.form-control.is-invalid:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--spacing-3) center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: var(--spacing-10);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-3);
}

.form-check-input {
    margin-right: var(--spacing-3);
    width: 1rem;
    height: 1rem;
}

.form-check-label {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.error-message {
    color: var(--error-color);
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-1);
}

/* ===== TABLE COMPONENTS ===== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    background-color: var(--white);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--spacing-4);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background-color: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

/* ===== BADGE COMPONENTS ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-1) var(--spacing-3);
    font-size: var(--font-size-xs);
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary { background-color: var(--primary-color); color: var(--white); }
.badge-success { background-color: var(--success-color); color: var(--white); }
.badge-warning { background-color: var(--warning-color); color: var(--white); }
.badge-danger { background-color: var(--error-color); color: var(--white); }
.badge-info { background-color: var(--info-color); color: var(--white); }
.badge-light { background-color: var(--gray-100); color: var(--gray-700); }
.badge-dark { background-color: var(--gray-800); color: var(--white); }

/* ===== NAVIGATION COMPONENTS ===== */
.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--spacing-4) 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.navbar-brand {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-6);
}

.nav-link {
    color: var(--gray-600);
    font-weight: 500;
    padding: var(--spacing-2) 0;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* ===== SIDEBAR COMPONENTS ===== */
.sidebar {
    width: 280px;
    background-color: var(--white);
    border-right: 1px solid var(--gray-200);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: var(--z-fixed);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-header {
    padding: var(--spacing-6);
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-menu {
    padding: var(--spacing-4) 0;
}

.sidebar-menu-item {
    display: block;
    padding: var(--spacing-3) var(--spacing-6);
    color: var(--gray-600);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-menu-item:hover,
.sidebar-menu-item.active {
    background-color: var(--gray-50);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-menu-item i {
    margin-right: var(--spacing-3);
    width: 20px;
    text-align: center;
}

/* ===== MODAL COMPONENTS ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-4);
}

.modal-dialog {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: var(--spacing-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.modal-body {
    padding: var(--spacing-6);
}

.modal-footer {
    padding: var(--spacing-6);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-3);
}

/* ===== ALERT COMPONENTS ===== */
.alert {
    padding: var(--spacing-4) var(--spacing-5);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    margin-bottom: var(--spacing-4);
}

.alert-primary {
    background-color: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
    color: var(--primary-dark);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

/* ===== TOAST COMPONENTS ===== */
.toast-container {
    position: fixed;
    top: var(--spacing-6);
    right: var(--spacing-6);
    z-index: var(--z-toast);
    max-width: 400px;
}

.toast {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    padding: var(--spacing-4);
    margin-bottom: var(--spacing-3);
    transform: translateX(100%);
    opacity: 0;
    transition: all var(--transition-normal);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success { border-left: 4px solid var(--success-color); }
.toast-warning { border-left: 4px solid var(--warning-color); }
.toast-error { border-left: 4px solid var(--error-color); }
.toast-info { border-left: 4px solid var(--info-color); }

/* ===== UTILITY CLASSES ===== */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

/* Flexbox */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-stretch { align-items: stretch !important; }
.flex-grow-1 { flex-grow: 1 !important; }

/* Text */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.fw-normal { font-weight: 400 !important; }
.fw-bold { font-weight: 600 !important; }
.fw-bolder { font-weight: 700 !important; }

/* Colors */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--gray-600) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--error-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-light { color: var(--gray-400) !important; }
.text-dark { color: var(--gray-800) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-white { color: var(--white) !important; }

/* Background Colors */
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--gray-600) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--error-color) !important; }
.bg-info { background-color: var(--info-color) !important; }
.bg-light { background-color: var(--gray-100) !important; }
.bg-dark { background-color: var(--gray-800) !important; }
.bg-white { background-color: var(--white) !important; }

/* Spacing */
.m-0 { margin: 0 !important; }
.m-1 { margin: var(--spacing-1) !important; }
.m-2 { margin: var(--spacing-2) !important; }
.m-3 { margin: var(--spacing-3) !important; }
.m-4 { margin: var(--spacing-4) !important; }
.m-5 { margin: var(--spacing-5) !important; }
.m-auto { margin: auto !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-1) !important; }
.mt-2 { margin-top: var(--spacing-2) !important; }
.mt-3 { margin-top: var(--spacing-3) !important; }
.mt-4 { margin-top: var(--spacing-4) !important; }
.mt-5 { margin-top: var(--spacing-5) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-1) !important; }
.mb-2 { margin-bottom: var(--spacing-2) !important; }
.mb-3 { margin-bottom: var(--spacing-3) !important; }
.mb-4 { margin-bottom: var(--spacing-4) !important; }
.mb-5 { margin-bottom: var(--spacing-5) !important; }

.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: var(--spacing-1) !important; }
.ms-2 { margin-left: var(--spacing-2) !important; }
.ms-3 { margin-left: var(--spacing-3) !important; }
.ms-4 { margin-left: var(--spacing-4) !important; }
.ms-5 { margin-left: var(--spacing-5) !important; }
.ms-auto { margin-left: auto !important; }

.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: var(--spacing-1) !important; }
.me-2 { margin-right: var(--spacing-2) !important; }
.me-3 { margin-right: var(--spacing-3) !important; }
.me-4 { margin-right: var(--spacing-4) !important; }
.me-5 { margin-right: var(--spacing-5) !important; }
.me-auto { margin-right: auto !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: var(--spacing-1) !important; }
.p-2 { padding: var(--spacing-2) !important; }
.p-3 { padding: var(--spacing-3) !important; }
.p-4 { padding: var(--spacing-4) !important; }
.p-5 { padding: var(--spacing-5) !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: var(--spacing-1) !important; }
.pt-2 { padding-top: var(--spacing-2) !important; }
.pt-3 { padding-top: var(--spacing-3) !important; }
.pt-4 { padding-top: var(--spacing-4) !important; }
.pt-5 { padding-top: var(--spacing-5) !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: var(--spacing-1) !important; }
.pb-2 { padding-bottom: var(--spacing-2) !important; }
.pb-3 { padding-bottom: var(--spacing-3) !important; }
.pb-4 { padding-bottom: var(--spacing-4) !important; }
.pb-5 { padding-bottom: var(--spacing-5) !important; }

.ps-0 { padding-left: 0 !important; }
.ps-1 { padding-left: var(--spacing-1) !important; }
.ps-2 { padding-left: var(--spacing-2) !important; }
.ps-3 { padding-left: var(--spacing-3) !important; }
.ps-4 { padding-left: var(--spacing-4) !important; }
.ps-5 { padding-left: var(--spacing-5) !important; }

.pe-0 { padding-right: 0 !important; }
.pe-1 { padding-right: var(--spacing-1) !important; }
.pe-2 { padding-right: var(--spacing-2) !important; }
.pe-3 { padding-right: var(--spacing-3) !important; }
.pe-4 { padding-right: var(--spacing-4) !important; }
.pe-5 { padding-right: var(--spacing-5) !important; }

/* Border */
.border { border: 1px solid var(--gray-200) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--gray-200) !important; }
.border-bottom { border-bottom: 1px solid var(--gray-200) !important; }
.border-start { border-left: 1px solid var(--gray-200) !important; }
.border-end { border-right: 1px solid var(--gray-200) !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-circle { border-radius: 50% !important; }

/* Shadow */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* Width & Height */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

/* Position */
.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

.fade-in { animation: fadeIn 0.5s ease-in-out; }
.fade-in-up { animation: fadeInUp 0.6s ease-out; }
.slide-in-right { animation: slideInRight 0.4s ease-out; }

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile First Approach */
@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-3);
    }
    
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
    
    .btn {
        padding: var(--spacing-3) var(--spacing-4);
        font-size: var(--font-size-sm);
    }
    
    .card-body {
        padding: var(--spacing-4);
    }
    
    .modal-dialog {
        margin: var(--spacing-3);
    }
    
    .sidebar {
        width: 100%;
    }
    
    .toast-container {
        left: var(--spacing-3);
        right: var(--spacing-3);
        max-width: none;
    }
    
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
}

/* Tablet */
@media (min-width: 577px) and (max-width: 768px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Desktop */
@media (min-width: 769px) {
    .sidebar {
        position: relative;
        transform: translateX(0);
        height: auto;
    }
    
    .main-content {
        margin-left: 280px;
    }
    
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
    .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .modal,
    .toast-container {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid var(--gray-300) !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-50: #1f2937;
        --gray-100: #374151;
        --gray-200: #4b5563;
        --gray-800: #f9fafb;
        --gray-900: #ffffff;
    }
    
    body {
        background-color: var(--gray-900);
        color: var(--gray-100);
    }
    
    .card,
    .modal-dialog,
    .navbar {
        background-color: var(--gray-800);
        border-color: var(--gray-700);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-xl);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== READ THEME - White & Red Color Scheme ===== */
/* Converts all blue colors to red while preserving white backgrounds and text */

body.theme-read {
    /* Ensure white backgrounds stay white */
    background-color: #ffffff !important;
}

/* Logo and Branding */
body.theme-read .logo,
body.theme-read [class*="logo"],
body.theme-read [id*="logo"] {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Navigation */
body.theme-read .nav-menu a,
body.theme-read nav a,
body.theme-read .navbar-nav a {
    color: #dc2626 !important;
}
body.theme-read .nav-menu a:hover,
body.theme-read nav a:hover,
body.theme-read .navbar-nav a:hover {
    color: #b91c1c !important;
}

body.theme-read .lang-btn:focus,
body.theme-read button:focus {
    outline: 2px solid #dc2626 !important;
}

body.theme-read .lang-btn:hover {
    background: #b91c1c !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

/* Buttons */
body.theme-read .btn-outline,
body.theme-read .btn-outline-primary {
    color: #dc2626 !important;
    border-color: #dc2626 !important;
}

body.theme-read .btn-outline:hover,
body.theme-read .btn-outline-primary:hover {
    background: #dc2626 !important;
    color: white !important;
}

body.theme-read .btn-primary,
body.theme-read .btn[class*="primary"] {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: white !important;
}

body.theme-read .btn-primary:hover,
body.theme-read .btn[class*="primary"]:hover {
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4) !important;
}

body.theme-read .btn-secondary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: white !important;
}

/* Hero Section - Keep original colors, don't apply red theme to banner */
/* Banner/hero section should remain in original colors */

/* Feature Icons */
body.theme-read .feature-icon,
body.theme-read .feature-card .feature-icon,
body.theme-read .features-grid .feature-icon,
body.theme-read [class*="feature-icon"] {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    background-image: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

body.theme-read .feature-icon i,
body.theme-read .feature-icon svg {
    color: white !important;
}

body.theme-read .feature-card h3,
body.theme-read [class*="feature"][class*="title"] {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Section titles and headings - red text */
body.theme-read .section-title h2,
body.theme-read h2,
body.theme-read h1 {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #dc2626 !important;
}

/* All headings red - except hero/banner section */
body.theme-read h1:not(.hero-content h1),
body.theme-read h2:not(.hero-content h2),
body.theme-read h3:not(.hero-content h3),
body.theme-read h4:not(.hero-content h4),
body.theme-read h5:not(.hero-content h5),
body.theme-read h6:not(.hero-content h6) {
    color: #dc2626 !important;
}

/* Hero/Banner content - keep white text */
body.theme-read .hero-content h1,
body.theme-read .hero-content h2,
body.theme-read .hero-content h3,
body.theme-read .hero-content p,
body.theme-read .hero-content *,
body.theme-read .hero-stats,
body.theme-read .stat-item,
body.theme-read .stat-number,
body.theme-read .stat-label {
    color: white !important;
}

/* Paragraph text - darker red for readability, except hero */
body.theme-read .section-title p,
body.theme-read p:not(.hero-content p) {
    color: #991b1b !important;
}

/* Step Numbers */
body.theme-read .step-num,
body.theme-read [class*="step-num"] {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: white !important;
}

/* Accordion */
body.theme-read .accordion-icon,
body.theme-read .accordion-header i {
    color: #dc2626 !important;
}

/* Story Cards */
body.theme-read .story-card::before {
    color: #dc2626 !important;
}

body.theme-read .author-avatar {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

/* Profile Cards */
body.theme-read .profile-card .btn,
body.theme-read .profile-card button {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
    color: white !important;
}

/* Quick Search */
body.theme-read .quick-search,
body.theme-read [class*="quick-search"] {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
    color: white !important;
}

/* Forms */
body.theme-read input[type="text"]:focus,
body.theme-read input[type="email"]:focus,
body.theme-read input[type="password"]:focus,
body.theme-read input[type="number"]:focus,
body.theme-read input[type="tel"]:focus,
body.theme-read select:focus,
body.theme-read textarea:focus,
body.theme-read .form-control:focus,
body.theme-read .form-input:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

body.theme-read input:invalid:not(:focus),
body.theme-read select:invalid:not(:focus) {
    border-color: #dc3545 !important;
}

body.theme-read .error-message {
    color: #dc3545 !important;
}

/* Links */
body.theme-read a {
    color: inherit;
}

body.theme-read a:hover,
body.theme-read .footer a:hover,
body.theme-read .social-link:hover {
    color: #dc2626 !important;
}

body.theme-read a[class*="link"]:hover {
    color: #dc2626 !important;
}

/* Cards */
body.theme-read .card,
body.theme-read .profile-card,
body.theme-read .feature-card,
body.theme-read .step-card {
    border-color: rgba(220, 38, 38, 0.2) !important;
    background: white !important;
}

body.theme-read .card:hover,
body.theme-read .profile-card:hover,
body.theme-read .feature-card:hover {
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.15) !important;
}

/* Badges and Tags */
body.theme-read .badge,
body.theme-read .tag,
body.theme-read [class*="badge"] {
    background-color: #dc2626 !important;
    color: white !important;
}

/* Progress Bars */
body.theme-read #photoUploadBar,
body.theme-read [class*="progress-bar"],
body.theme-read [id*="progress"] {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

/* Admin Button */
body.theme-read button[onclick*="Admin"],
body.theme-read [class*="admin-btn"] {
    background: #dc2626 !important;
    color: white !important;
}

/* Inline Style Overrides */
body.theme-read [style*="background: #667eea"],
body.theme-read [style*="background:#667eea"],
body.theme-read [style*="background: #3b82f6"],
body.theme-read [style*="background:#3b82f6"],
body.theme-read [style*="background: #2563eb"],
body.theme-read [style*="background:#2563eb"] {
    background: #dc2626 !important;
}

body.theme-read [style*="background: linear-gradient"][style*="#667eea"],
body.theme-read [style*="background:linear-gradient"][style*="#667eea"],
body.theme-read [style*="background: linear-gradient"][style*="#764ba2"],
body.theme-read [style*="background:linear-gradient"][style*="#764ba2"],
body.theme-read [style*="background: linear-gradient"][style*="#3b82f6"],
body.theme-read [style*="background:linear-gradient"][style*="#3b82f6"],
body.theme-read [style*="background: linear-gradient"][style*="#2563eb"],
body.theme-read [style*="background:linear-gradient"][style*="#2563eb"],
body.theme-read [style*="background: linear-gradient"][style*="#1e40af"],
body.theme-read [style*="background:linear-gradient"][style*="#1e40af"] {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

body.theme-read [style*="color: #3b82f6"],
body.theme-read [style*="color:#3b82f6"],
body.theme-read [style*="color: #667eea"],
body.theme-read [style*="color:#667eea"],
body.theme-read [style*="color: #2563eb"],
body.theme-read [style*="color:#2563eb"] {
    color: #dc2626 !important;
}

/* CSS Variables Override */
body.theme-read {
    --primary-color: #dc2626;
    --primary-dark: #991b1b;
    --primary-light: #ef4444;
    --secondary-color: #b91c1c;
    --info-color: #dc2626;
}

body.theme-read .bg-primary,
body.theme-read [class*="bg-primary"] {
    background-color: #dc2626 !important;
}

body.theme-read .text-primary,
body.theme-read [class*="text-primary"] {
    color: #dc2626 !important;
}

body.theme-read .border-primary,
body.theme-read [class*="border-primary"] {
    border-color: #dc2626 !important;
}

/* Dashboard & Login Pages - Comprehensive Blue to Red Conversions */
body.theme-read {
    /* CSS Variables - Override */
    --primary: #dc2626 !important;
    --secondary: #b91c1c !important;
    --accent: #ef4444 !important;
}

/* Dashboard Body Background */
body.theme-read.dashboard-page,
body.theme-read[class*="dashboard"] {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc2626 100%) !important;
}

body.theme-read.dashboard-page::before,
body.theme-read[class*="dashboard"]::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(153, 27, 27, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(127, 29, 29, 0.2) 0%, transparent 50%) !important;
}

/* Dashboard Header */
body.theme-read .header,
body.theme-read header[class*="header"] {
    background: #ffffff !important;
    border-bottom-color: rgba(220, 38, 38, 0.3) !important;
}

/* Dashboard Mobile Header */
body.theme-read .mobile-header-bar {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc2626 100%) !important;
    border-bottom-color: rgba(220, 38, 38, 0.3) !important;
}

/* Profile Card */
body.theme-read .profile-card {
    background: linear-gradient(135deg, #991b1b, #dc2626) !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
}

/* Sidebar */
body.theme-read .sidebar {
    border-color: rgba(220, 38, 38, 0.2) !important;
}

/* Menu Links */
body.theme-read .menu-link:hover {
    color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.1) !important;
}

body.theme-read .menu-link.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4) !important;
}

/* Stat Cards */
body.theme-read .stat-card {
    border-color: rgba(220, 38, 38, 0.2) !important;
}

body.theme-read .stat-card::before {
    background: linear-gradient(90deg, #dc2626, #b91c1c) !important;
}

body.theme-read .stat-card:hover {
    box-shadow: 0 30px 80px rgba(220, 38, 38, 0.3) !important;
}

body.theme-read .stat-icon {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4) !important;
}

body.theme-read .stat-number {
    color: #7f1d1d !important;
}

/* Match Cards */
body.theme-read .match-card::before {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.1) 0%, 
        rgba(153, 27, 27, 0.1) 50%, 
        rgba(220, 38, 38, 0.1) 100%) !important;
}

body.theme-read .match-card:hover {
    box-shadow: 
        0 40px 100px rgba(220, 38, 38, 0.3),
        0 0 0 1px rgba(220, 38, 38, 0.3),
        0 0 30px rgba(220, 38, 38, 0.2) !important;
}

body.theme-read .match-image {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

body.theme-read .match-image::before {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.3), rgba(220, 38, 38, 0.3), rgba(153, 27, 27, 0.3)) !important;
}

body.theme-read .match-name {
    color: #7f1d1d !important;
}

body.theme-read .match-stat-value {
    color: #dc2626 !important;
}

body.theme-read .match-stats {
    border-top-color: rgba(220, 38, 38, 0.2) !important;
    border-bottom-color: rgba(220, 38, 38, 0.2) !important;
}

/* Buttons */
body.theme-read .btn-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4) !important;
}

body.theme-read .btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.5) !important;
}

body.theme-read .btn-secondary {
    color: #dc2626 !important;
    border-color: #dc2626 !important;
}

body.theme-read .btn-secondary:hover {
    background: #dc2626 !important;
}

/* Filter Tabs */
body.theme-read .filter-tabs {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Section Title */
body.theme-read .section-title {
    color: white !important;
}

/* Language Switcher */
body.theme-read .lang-option {
    color: #7f1d1d !important;
}

body.theme-read .lang-option:hover {
    background: rgba(220, 38, 38, 0.1) !important;
}

body.theme-read .lang-dropdown,
body.theme-read .sidebar-lang-dropdown {
    border-color: rgba(220, 38, 38, 0.2) !important;
}

/* Bottom Nav */
body.theme-read .mobile-bottom-nav {
    border-top-color: rgba(220, 38, 38, 0.2) !important;
}

body.theme-read .bottom-nav-item.active {
    color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.1) !important;
}

body.theme-read .bottom-nav-item.active i {
    color: #dc2626 !important;
}

/* Premium Border Gradient */
body.theme-read .premium-border::before {
    background: linear-gradient(120deg, #dc2626, #b91c1c, #991b1b, #dc2626) !important;
}

/* Login Page Specific */
body.theme-read.login-page {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%) !important;
}

body.theme-read.login-page .login-container {
    border-color: rgba(220, 38, 38, 0.2) !important;
}

body.theme-read .login-btn,
body.theme-read button[type="submit"] {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

body.theme-read input:focus,
body.theme-read select:focus,
body.theme-read textarea:focus {
    border-color: #dc2626 !important;
    accent-color: #dc2626 !important;
}

body.theme-read a:hover {
    color: #dc2626 !important;
}

body.theme-read .form-group label {
    color: #dc2626 !important;
}

/* Verification Badge - Mobile */
body.theme-read [style*="background: #3b82f6"],
body.theme-read [style*="background:#3b82f6"] {
    background: #dc2626 !important;
}

/* Toast Messages */
body.theme-read [style*="#667eea"],
body.theme-read [style*="#764ba2"] {
    background: linear-gradient(90deg, #dc2626, #b91c1c) !important;
    color: white !important;
}

body.theme-read [style*="color: #667eea"],
body.theme-read [style*="color:#667eea"] {
    color: #dc2626 !important;
}

/* Inline Styles Override - All Blue to Red */
body.theme-read [style*="background: #3b82f6"],
body.theme-read [style*="background:#3b82f6"],
body.theme-read [style*="background: #667eea"],
body.theme-read [style*="background:#667eea"],
body.theme-read [style*="background: #2563eb"],
body.theme-read [style*="background:#2563eb"],
body.theme-read [style*="background: #1e40af"],
body.theme-read [style*="background:#1e40af"],
body.theme-read [style*="background: #1e3a8a"],
body.theme-read [style*="background:#1e3a8a"] {
    background: #dc2626 !important;
}

body.theme-read [style*="color: #3b82f6"],
body.theme-read [style*="color:#3b82f6"],
body.theme-read [style*="color: #667eea"],
body.theme-read [style*="color:#667eea"],
body.theme-read [style*="color: #2563eb"],
body.theme-read [style*="color:#2563eb"],
body.theme-read [style*="color: #1e40af"],
body.theme-read [style*="color:#1e40af"],
body.theme-read [style*="color: #1e3a8a"],
body.theme-read [style*="color:#1e3a8a"] {
    color: #dc2626 !important;
}

body.theme-read [style*="border-color: #3b82f6"],
body.theme-read [style*="border-color:#3b82f6"],
body.theme-read [style*="border-color: #667eea"],
body.theme-read [style*="border-color:#667eea"] {
    border-color: #dc2626 !important;
}

/* ============================================
   ALL USER PAGES - Comprehensive Red Theme
   ============================================ */

/* Interests Page */
body.theme-read .interests-page {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc2626 100%) !important;
}

body.theme-read .interests-page::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(153, 27, 27, 0.3) 0%, transparent 50%) !important;
}

body.theme-read .interests-title,
body.theme-read .section-title {
    color: #7f1d1d !important;
}

body.theme-read .stat-icon {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35) !important;
}

body.theme-read .stat-number {
    color: #7f1d1d !important;
}

body.theme-read .section-icon {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35) !important;
}

body.theme-read .interest-item:hover {
    background: rgba(220, 38, 38, 0.05) !important;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.15) !important;
}

body.theme-read .interest-details h4 {
    color: #7f1d1d !important;
}

body.theme-read .lang-btn {
    background: rgba(220, 38, 38, 0.1) !important;
    border-color: rgba(220, 38, 38, 0.2) !important;
    color: #7f1d1d !important;
}

body.theme-read .lang-btn:hover {
    background: rgba(220, 38, 38, 0.2) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2) !important;
}

body.theme-read .lang-dropdown {
    border-color: rgba(220, 38, 38, 0.2) !important;
}

body.theme-read .lang-option {
    color: #7f1d1d !important;
}

body.theme-read .lang-option:hover {
    background: rgba(220, 38, 38, 0.1) !important;
}

/* Matches Page */
body.theme-read .matches-page {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc2626 100%) !important;
}

body.theme-read .matches-page::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(153, 27, 27, 0.3) 0%, transparent 50%) !important;
}

body.theme-read .stat-card {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4) !important;
}

body.theme-read .match-avatar {
    background: linear-gradient(45deg, #dc2626, #b91c1c) !important;
}

body.theme-read .match-name {
    color: #dc2626 !important;
}

body.theme-read .match-type-btn:hover {
    border-color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.1) !important;
}

body.theme-read .match-type-btn.active {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

body.theme-read .view-btn.active {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

body.theme-read .match-stat {
    background: rgba(220, 38, 38, 0.1) !important;
}

body.theme-read .match-stat-value {
    color: #dc2626 !important;
}

body.theme-read .match-preferences {
    background: rgba(220, 38, 38, 0.1) !important;
}

body.theme-read .preferences-title {
    color: #dc2626 !important;
}

body.theme-read .refresh-btn {
    background: linear-gradient(45deg, #dc2626, #b91c1c) !important;
}

/* Messages, Payment, Plans, Profile, Search, Settings Pages */
body.theme-read [class*="page"]:not(.hero):not(.hero-section) {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc2626 100%) !important;
}

body.theme-read [class*="page"]:not(.hero):not(.hero-section)::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(153, 27, 27, 0.3) 0%, transparent 50%) !important;
}

/* All Page Headers */
body.theme-read [class*="header"]:not(.hero-content) h1,
body.theme-read [class*="header"]:not(.hero-content) h2,
body.theme-read [class*="title"] {
    color: #7f1d1d !important;
}

/* All Buttons */
body.theme-read button[style*="#3b82f6"],
body.theme-read button[style*="#667eea"],
body.theme-read a[style*="#3b82f6"],
body.theme-read a[style*="#667eea"] {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: white !important;
}

body.theme-read button[style*="rgba(59, 130, 246"],
body.theme-read a[style*="rgba(59, 130, 246"] {
    background: rgba(220, 38, 38, 0.1) !important;
    color: #dc2626 !important;
}

body.theme-read button[style*="rgba(59, 130, 246"]:hover,
body.theme-read a[style*="rgba(59, 130, 246"]:hover {
    background: rgba(220, 38, 38, 0.2) !important;
}

/* All Inline Gradients in JavaScript */
body.theme-read [style*="linear-gradient"][style*="#667eea"],
body.theme-read [style*="linear-gradient"][style*="#764ba2"],
body.theme-read [style*="linear-gradient"][style*="#3b82f6"],
body.theme-read [style*="linear-gradient"][style*="#2563eb"] {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

/* Avatar Gradients */
body.theme-read [style*="linear-gradient(135deg, #667eea"],
body.theme-read [style*="linear-gradient(45deg, #667eea"] {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

/* Mobile Bottom Nav */
body.theme-read .mobile-bottom-nav {
    border-top-color: rgba(220, 38, 38, 0.2) !important;
}

body.theme-read .bottom-nav-item.active {
    color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.1) !important;
}

body.theme-read .bottom-nav-item.active i {
    color: #dc2626 !important;
}

/* Toast Messages */
body.theme-read [style*="background: #3b82f6"] {
    background: #dc2626 !important;
}

/* All Text Colors */
body.theme-read [style*="color: #3b82f6"],
body.theme-read [style*="color: #1e3a8a"],
body.theme-read [style*="color: #2563eb"] {
    color: #dc2626 !important;
}

/* Icon Colors */
body.theme-read [style*="color: #3b82f6"][class*="fa-"],
body.theme-read i[style*="color: #3b82f6"] {
    color: #dc2626 !important;
}

/* ============================================
   PLANS PAGE - Keep Original Blue Theme
   ============================================ */
/* Plans page intentionally kept with original blue theme */

/* ============================================
   PROFILE PAGE - Red Theme
   ============================================ */
body.theme-read .profile-page {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc2626 100%) !important;
}

body.theme-read .profile-page::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(153, 27, 27, 0.3) 0%, transparent 50%) !important;
}

body.theme-read .profile-avatar,
body.theme-read .avatar-placeholder {
    background: linear-gradient(45deg, #dc2626, #b91c1c) !important;
}

body.theme-read input:focus,
body.theme-read select:focus,
body.theme-read textarea:focus {
    border-color: #dc2626 !important;
}

body.theme-read .save-btn,
body.theme-read button[type="submit"] {
    background: #dc2626 !important;
}

/* ============================================
   MESSAGES PAGE - Red Theme
   ============================================ */
body.theme-read .messages-page {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc2626 100%) !important;
}

body.theme-read .messages-page::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.3) 0%, transparent 50%) !important;
}

body.theme-read .message-input:focus,
body.theme-read .chat-input:focus {
    border-color: #dc2626 !important;
}

body.theme-read .send-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

/* ============================================
   SEARCH PAGE - Red Theme
   ============================================ */
body.theme-read .search-page {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc2626 100%) !important;
}

body.theme-read .search-page::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.3) 0%, transparent 50%) !important;
}

body.theme-read .search-avatar {
    background: linear-gradient(45deg, #dc2626, #b91c1c) !important;
}

/* ============================================
   SETTINGS PAGE - Red Theme
   ============================================ */
body.theme-read .settings-page {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc2626 100%) !important;
}

body.theme-read .settings-page::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.3) 0%, transparent 50%) !important;
}

body.theme-read .settings-avatar {
    background: linear-gradient(45deg, #dc2626, #b91c1c) !important;
}

/* ============================================
   PAYMENT PAGE - Red Theme
   ============================================ */
body.theme-read .payment-page {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc2626 100%) !important;
}

body.theme-read .payment-page::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.3) 0%, transparent 50%) !important;
}

body.theme-read .payment-btn,
body.theme-read .pay-btn {
    background: #dc2626 !important;
}

body.theme-read .payment-card:focus {
    border-color: #dc2626 !important;
}

/* ============================================
   UNIVERSAL OVERRIDES - All Pages
   ============================================ */
body.theme-read [class*="-page"]:not(.hero):not(.hero-section) {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc2626 100%) !important;
}

body.theme-read [class*="-page"]:not(.hero):not(.hero-section)::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(153, 27, 27, 0.3) 0%, transparent 50%) !important;
}

/* All CSS Variables Override */
body.theme-read {
    --primary: #dc2626 !important;
    --primary-dark: #b91c1c !important;
    --primary-light: #ef4444 !important;
    --secondary: #b91c1c !important;
    --info: #dc2626 !important;
    --dark: #7f1d1d !important;
    --border: rgba(220, 38, 38, 0.2) !important;
    --text: #7f1d1d !important;
    --glass-border: rgba(220, 38, 38, 0.2) !important;
}

/* All Headings */
body.theme-read h1:not(.hero-content h1),
body.theme-read h2:not(.hero-content h2),
body.theme-read h3:not(.hero-content h3),
body.theme-read h4:not(.hero-content h4),
body.theme-read h5:not(.hero-content h5),
body.theme-read h6:not(.hero-content h6) {
    color: #7f1d1d !important;
}

/* All Links */
body.theme-read a:not(.hero-content a):hover {
    color: #dc2626 !important;
}

/* All Form Elements */
body.theme-read input:focus,
body.theme-read select:focus,
body.theme-read textarea:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* All Cards */
body.theme-read .card,
body.theme-read [class*="card"]:not(.hero-content) {
    border-color: rgba(220, 38, 38, 0.2) !important;
}

body.theme-read .card:hover,
body.theme-read [class*="card"]:not(.hero-content):hover {
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.15) !important;
}