/* KGFRP Public Pages — Gold premium theme, radius 0 */
:root {
    --primary-color: #C5A028;
    --primary-dark: #9A7B0A;
    --primary-light: #E8C84A;
    --secondary-color: #B8860B;
    --accent-gold: #D4AF37;
    --text-color: #1a1a1a;
    --text-muted: #6c757d;
    --border-color: #e0d5c0;
    --bg-body: #faf8f4;
    --bg-section: #ffffff;
    --bg-alt: #f3ede0;
    --footer-bg: #1c1810;
    --shadow-sm: 0 1px 2px rgba(154, 123, 10, 0.08);
    --shadow-md: 0 2px 8px rgba(154, 123, 10, 0.12);
    --shadow-lg: 0 4px 16px rgba(154, 123, 10, 0.15);
    --transition: all 0.2s ease;
    --bs-border-radius: 0;
    --bs-border-radius-sm: 0;
    --bs-border-radius-lg: 0;
    --bs-border-radius-xl: 0;
    --bs-border-radius-pill: 0;
}

*,
*::before,
*::after,
.btn,
.card,
.badge,
.alert,
.form-control,
.form-select,
.input-group,
.dropdown-menu,
.modal-content,
.nav-pills .nav-link,
.pagination .page-link,
.rounded,
.rounded-pill,
.rounded-3,
[class*="rounded"] {
    border-radius: 0 !important;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    font-size: 14px;
    background-color: var(--bg-body);
}

/* Navbar */
.public-navbar {
    background: #ffffff !important;
    border-bottom: 2px solid var(--primary-color);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.public-navbar .navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.public-navbar .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem !important;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: 1px solid var(--primary-dark);
    color: #fff;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    background: transparent;
    transition: var(--transition);
}

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

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

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

/* Cards */
.public-card {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.public-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 160, 40, 0.35);
}

.public-card-header {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--primary-dark);
}

/* Section titles */
.section-title {
    margin-bottom: 2rem;
    text-align: center;
}

.section-title h2 {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

section.public-section {
    padding: 3.5rem 0;
}

section.public-section-alt {
    background: var(--bg-alt);
}

/* Tables */
.public-table {
    background: #fff;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.public-table thead th {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none;
    font-weight: 600;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
}

.public-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-color: var(--border-color);
}

.public-table tbody tr:hover {
    background-color: rgba(197, 160, 40, 0.04);
}

/* Badges */
.badge {
    padding: 0.35rem 0.65rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge.bg-secondary {
    background: #5c4a1f !important;
}

.badge.bg-success {
    background: #198754 !important;
}

.badge.bg-danger {
    background: #dc3545 !important;
}

/* Alerts */
.alert-info {
    background: rgba(197, 160, 40, 0.08);
    border: 1px solid rgba(197, 160, 40, 0.25);
    color: var(--primary-dark);
    font-size: 0.875rem;
}

.alert-warning {
    background: #fff8e1;
    border: 1px solid #ffc107;
    font-size: 0.875rem;
}

/* Footer */
.public-footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 2.5rem 0 1.25rem;
    border-top: 3px solid var(--primary-color);
}

.public-footer h4,
.public-footer h5 {
    color: var(--primary-light);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.public-footer p,
.public-footer li {
    font-size: 0.875rem;
    line-height: 1.6;
}

.public-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
}

.public-footer a:hover {
    color: var(--primary-light);
}

.public-footer .social-links a {
    background: rgba(197, 160, 40, 0.15);
    color: var(--primary-light);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    border: 1px solid rgba(197, 160, 40, 0.3);
}

.public-footer .social-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Back to top */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    background: var(--primary-color);
    width: 42px;
    height: 42px;
    transition: var(--transition);
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: #fff;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/* Hero */
.hero-section {
    background: var(--bg-section);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero-section .lead {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* Inner page hero */
.page-hero {
    background: var(--footer-bg);
    color: #fff;
    padding: 2.5rem 0;
    border-bottom: 3px solid var(--primary-color);
}

.page-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--primary-light);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 600px;
}

.page-hero .breadcrumb-nav {
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.page-hero .breadcrumb-nav a {
    color: var(--primary-light);
    text-decoration: none;
}

.page-hero .breadcrumb-nav a:hover {
    color: #fff;
}

.page-hero .breadcrumb-nav span {
    color: rgba(255, 255, 255, 0.5);
}

/* Home quick navigation cards */
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.quick-nav-card {
    display: block;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border-left: 3px solid var(--primary-color);
}

.quick-nav-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    color: var(--text-color);
    transform: translateY(-2px);
}

.quick-nav-card i {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
}

.quick-nav-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.quick-nav-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

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

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

.icon-gold {
    color: var(--primary-color);
}

/* Feature cards */
.feature-card {
    border: 1px solid var(--border-color);
    padding: 1.5rem !important;
    background: var(--bg-section);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    color: var(--primary-color);
}

.feature-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Package cards */
.package-card {
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    background: var(--bg-section);
    transition: var(--transition);
    height: 100%;
}

.package-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.popular-package {
    border: 2px solid var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 0.375rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.package-name {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

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

.package-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.package-features ul li {
    padding: 0.4rem 0;
    font-size: 0.875rem;
}

.benefit-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.benefit-item:hover {
    border-color: var(--primary-color);
    background: rgba(197, 160, 40, 0.04);
}

.package-info-card {
    border: 1px solid var(--border-color);
    background: var(--bg-section);
}

/* Distributor cards */
.distributor-card {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.distributor-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.distributor-card .card-header {
    background: var(--primary-color) !important;
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.distributor-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 44px);
}

.distributor-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.distributor-info p {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-alt);
    font-size: 0.825rem;
    border-left: 3px solid var(--primary-color);
}

.distributor-info i {
    width: 16px;
    margin-right: 8px;
    color: var(--primary-color);
}

.distributor-web a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.distributor-web a:hover {
    text-decoration: underline;
}

.stars {
    color: #ffc107;
    font-size: 1rem;
    text-align: center;
    margin-top: auto;
    padding-top: 1rem;
}

/* Payment */
.payment-card {
    border: 1px solid var(--border-color);
    background: var(--bg-section);
}

.payment-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    background: var(--bg-alt);
    transition: var(--transition);
    min-width: 100px;
    border: 1px solid var(--border-color);
}

.payment-icon-item:hover {
    border-color: var(--primary-color);
    background: rgba(197, 160, 40, 0.06);
}

.payment-icon-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.payment-icon-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Tool slider */
.tool-slider-container {
    max-width: 1100px;
    margin: 1.5rem auto;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    background: var(--bg-alt);
}

.tool-slider {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.tool-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.tool-slider .slide.active {
    opacity: 1;
    z-index: 2;
    position: relative;
}

.tool-slider .slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: var(--bg-alt);
}

.slider-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
}

.slider-indicators .indicator {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    outline: none;
}

.slider-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.slider-indicators .indicator.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    width: 24px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: 1px solid var(--primary-dark);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.tool-slider-container:hover .slider-nav {
    opacity: 1;
}

.slider-nav:hover {
    background: var(--primary-dark);
}

.slider-nav.prev { left: 12px; }
.slider-nav.next { right: 12px; }

/* Supported models page */
.stats-section {
    margin-top: 1rem;
    padding-bottom: 0.5rem;
}

.stat-card {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    min-width: 180px;
}

.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.stat-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-section {
    padding: 1.5rem 0;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 57px;
    z-index: 100;
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid var(--border-color);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
    background: #fff;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(197, 160, 40, 0.15);
}

.search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box .clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.search-box .clear-btn.show { opacity: 1; }
.search-box .clear-btn:hover { color: #dc3545; }

.search-hint {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.search-hint kbd {
    background: var(--bg-alt);
    padding: 0.15rem 0.4rem;
    border: 1px solid var(--border-color);
    font-family: inherit;
    color: var(--text-color);
    font-weight: 600;
}

.brand-button {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.brand-button.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-dark);
}

.brand-count-badge {
    background: var(--bg-alt);
    color: var(--text-muted);
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
}

.brand-button.active .brand-count-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.brands-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.models-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.models-container.active {
    max-height: 8000px;
    opacity: 1;
}

.models-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0.875rem 1.25rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
}

.models-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.models-header h3 i { color: var(--primary-color); }

.models-count {
    background: var(--primary-color);
    color: #fff;
    padding: 0.35rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.875rem;
    padding-bottom: 2rem;
}

.model-item {
    background: var(--bg-section);
    padding: 1.125rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.model-item:hover {
    border-color: var(--border-color);
    border-left-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

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

.model-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.model-info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.model-info-row i {
    width: 18px;
    color: var(--primary-color);
}

.model-chipset {
    color: var(--primary-dark);
    font-weight: 600;
}

.model-name {
    font-weight: 700;
    font-size: 0.9375rem;
}

.model-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.model-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid;
}

.model-auth-badge.supported {
    background: rgba(197, 160, 40, 0.1);
    color: var(--primary-dark);
    border-color: rgba(197, 160, 40, 0.3);
}

.model-auth-badge.unsupported {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

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

.empty-state .empty-icon,
.no-results .no-results-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border: 1px solid var(--border-color);
}

.empty-state .empty-icon i,
.no-results .no-results-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.no-results { display: none; }
.no-results.show { display: block; }

.models-footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 2rem 0 1rem;
    border-top: 3px solid var(--primary-color);
}

.models-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
}

.models-footer a:hover {
    color: var(--primary-light);
}

.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: var(--primary-color);
    border: 1px solid var(--primary-dark);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
}

/* Auth pages */
body.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    margin: 0;
    background: var(--footer-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text-color);
}

.auth-page .auth-bg-pattern {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #1a1d20 0%, var(--footer-bg) 100%);
    pointer-events: none;
}

.auth-brand {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    text-align: center;
}

.auth-brand a {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.auth-brand a:hover { color: var(--primary-light); }

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

.auth-card h1 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-card .auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.auth-card .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.auth-card .form-control {
    border: 1px solid var(--border-color);
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
}

.auth-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(197, 160, 40, 0.15);
}

.auth-card .btn-primary {
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.auth-card .form-check-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.auth-card .alert {
    font-size: 0.8125rem;
    border: 1px solid;
}

.auth-footer {
    margin-top: 1.25rem;
    text-align: center;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
}

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

.auth-divider { margin: 1.25rem 0; border-color: var(--border-color); }
.auth-link-block { display: block; margin-top: 1rem; }

.hover-white:hover {
    color: #fff !important;
}

.public-footer hr {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .hero-section { padding: 2.5rem 0 2rem; }
    section.public-section { padding: 2.5rem 0; }
    .section-title h2 { font-size: 1.5rem; }
    .stats-grid { flex-direction: column; align-items: center; }
    .stat-card { width: 100%; max-width: 280px; }
    .models-grid { grid-template-columns: 1fr; }
    .search-section { top: 52px; }
    .auth-card { padding: 1.75rem; }
}

@media (max-width: 576px) {
    .hero-section h1 { font-size: 1.75rem; }
    .public-navbar .navbar-brand { font-size: 1.15rem; }
}
