:root {
    --primary-red: #f2424b;
    --deep-purple: #5d1e6f;
    --soft-purple: #f8f5ff;
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --glass: rgba(255, 255, 255, 0.8);
    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

html {
    overflow-y: scroll;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: #fff;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

.text-primary-red { color: var(--primary-red) !important; }
.text-deep-purple { color: var(--deep-purple) !important; }
.bg-primary-red { background-color: var(--primary-red) !important; }
.bg-deep-purple { background-color: var(--deep-purple) !important; }
.bg-soft-purple { background-color: var(--soft-purple) !important; }

h1, h2, h3, h4, .brand-text {
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Bold Purple Navbar */
.navbar {
    background: var(--deep-purple);
    padding: 1rem 0;
    border-bottom: none;
    box-shadow: 0 10px 30px rgba(93, 30, 111, 0.15);
}

.navbar-brand {
    font-size: 1.6rem;
    color: #ffffff !important;
    position: relative;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 12px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
}

/* Adjusted Premium Buttons for Purple Context */
.btn-premium {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 0.75rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(242, 66, 75, 0.2);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 66, 75, 0.3);
    background: #e03a42;
    color: white;
}

.btn-outline-premium {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-premium:hover {
    background: white;
    color: var(--deep-purple);
    border-color: white;
}

.btn-upgrade {
    background: #FFD700;
    color: #000 !important;
    border: 1px solid #e6c200;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .btn-upgrade:hover {
    background: #ffdf33;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.35);
    color: #000 !important;
}

.btn-purple-outline {
    border: 2px solid var(--deep-purple);
    color: var(--deep-purple);
    transition: all 0.3s ease;
}

.btn-purple-outline:hover {
    background: var(--deep-purple);
    color: #fff;
}

/* Simplified Header Button */
.btn-premium-pill {
    background: var(--primary-red);
    color: white !important;
    padding: 0.6rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(242, 66, 75, 0.15);
    border: none;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-premium-pill:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Standardized Card Styles */
.card-modern {
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
}

.character-card {
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
    border-radius: 0.5rem;
}

.page-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.legal-content h2 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-main);
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.legal-content p,
.legal-content ul,
.legal-content ol {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
}

.legal-content a {
    color: var(--deep-purple);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-last-updated {
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.subscription-plan-summary {
    max-width: 800px;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-control {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1.5px solid #eee;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--deep-purple);
    box-shadow: 0 0 0 4px rgba(93, 30, 111, 0.1);
}

/* Breadcrumb Bar */
.breadcrumb-nav {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.breadcrumb-nav .breadcrumb {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    content: "\f054"; /* FontAwesome Chevron Right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.65rem;
    color: #ccc;
    padding-right: 1rem;
    padding-left: 1rem;
}

.breadcrumb-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--deep-purple);
}

.breadcrumb-nav .active {
    color: var(--deep-purple);
    font-weight: 600;
}

.profile-avatar-lg {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.admin-users-toolbar .form-control,
.admin-users-toolbar .form-select {
    border-radius: 999px;
}

.admin-users-sort-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: inherit;
    letter-spacing: inherit;
}

.admin-users-sort-link:visited {
    color: var(--text-muted);
    text-decoration: none;
}

.admin-users-sort-link:hover,
.admin-users-sort-link:focus {
    color: var(--deep-purple);
    text-decoration: none;
}

.admin-users-sort-link.is-active {
    color: var(--text-main);
}

.admin-users-sort-icon {
    font-size: 0.75rem;
}

.admin-users-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.bg-success-subtle {
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success);
}

.bg-secondary-subtle {
    background-color: var(--bs-secondary-bg-subtle);
    color: var(--bs-secondary);
}

.bg-warning-subtle {
    background-color: var(--bs-warning-bg-subtle);
    color: var(--bs-warning);
}

.bg-danger-subtle {
    background-color: var(--bs-danger-bg-subtle);
    color: var(--bs-danger);
}

.membership-expiry-label {
    font-size: 0.75em;
}

.admin-user-badge-sm {
    font-size: 0.65em;
}

.admin-user-badge-xs {
    font-size: 0.7rem;
}

.admin-hold-badge {
    font-size: 0.75rem;
    cursor: pointer;
}

.admin-actions-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-hold-chevron {
    cursor: pointer;
}

.admin-maintenance-banner {
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 0.9rem 1.25rem;
    border-radius: 16px;
    background: #fff4e5;
    border: 1px solid #f5c26b;
    color: #8a4b00;
    font-weight: 600;
}

.admin-maintenance-banner-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.admin-maintenance-banner-icon {
    color: #d97706;
}

.admin-maintenance-banner-link {
    margin-left: auto;
    color: #8a4b00;
    text-decoration: underline;
    font-weight: 700;
}

.admin-maintenance-banner-link:hover,
.admin-maintenance-banner-link:focus {
    color: #5c3200;
}

.maintenance-mode-field {
    width: 100%;
    min-height: calc(1.5em + 1rem + 2px);
}

.maintenance-mode-field .form-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0;
    margin-bottom: 0;
    min-height: 1.5rem;
}

.maintenance-mode-field .form-switch .form-check-input {
    width: 2.75rem;
    height: 1.4rem;
    margin-left: 0;
    margin-top: 0;
    float: none;
    flex-shrink: 0;
    cursor: pointer;
}

.maintenance-mode-field .form-check-label {
    padding-left: 0;
    margin-bottom: 0;
    cursor: pointer;
}

.maintenance-mode-toggle-label {
    color: #1d1d1f;
}

.maintenance-mode-status {
    font-weight: 600;
}

.maintenance-mode-status.is-off {
    color: #027a48;
}

.maintenance-mode-status.is-on {
    color: #b42318;
}
