/* =========================================
   FirmaCım - Kurumsal Firma Rehberi
   Temiz, beyaz, profesyonel tasarım
   ========================================= */

/* -----------------------------------------
   Design Tokens
   ----------------------------------------- */
:root {
    --primary: #1a56db;
    --primary-dark: #1648b5;
    --primary-light: #e8eefb;
    --secondary: #374151;
    --accent: #0d9488;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;

    --white: #ffffff;
    --bg: #f7f8fa;
    --bg-alt: #f0f2f5;
    --text: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

/* -----------------------------------------
   Base
   ----------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
}

/* -----------------------------------------
   Navbar
   ----------------------------------------- */
.glass-navbar {
    background: var(--white) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 0;
    transition: var(--transition);
}

.glass-navbar .navbar-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary) !important;
    padding: 0.75rem 0;
    letter-spacing: -0.3px;
}

.glass-navbar .navbar-brand i {
    color: var(--primary);
}

.glass-navbar .nav-link {
    color: var(--secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.55rem 0.9rem !important;
    border-radius: 6px;
    transition: var(--transition);
}

.glass-navbar .nav-link:hover,
.glass-navbar .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.glass-dropdown {
    background: var(--white) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    margin-top: 0.5rem;
}

.glass-dropdown .dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
    color: var(--secondary);
    transition: var(--transition);
}

.glass-dropdown .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.glass-dropdown .dropdown-divider {
    border-color: var(--border);
}

.nav-search-form .form-control {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px 0 0 6px;
    font-size: 0.85rem;
}

.nav-search-form .form-control::placeholder {
    color: var(--text-light);
}

.nav-search-form .form-control:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.nav-search-form .btn {
    border-radius: 0 6px 6px 0;
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.nav-search-form .btn:hover {
    background: var(--primary-dark);
}

.navbar-toggler {
    border-color: var(--border) !important;
}

.navbar-toggler-icon {
    filter: invert(0) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23374151' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* User nav buttons on light navbar */
.glass-navbar .btn-outline-light {
    border-color: var(--border);
    color: var(--secondary);
}

.glass-navbar .btn-outline-light:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* -----------------------------------------
   Main Content
   ----------------------------------------- */
.main-content {
    padding-top: 72px;
    min-height: calc(100vh - 200px);
}

/* -----------------------------------------
   Hero Section
   ----------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
    padding: 6rem 0 6rem;
    position: relative;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

/* Smooth bottom transition wave */
.hero-section-bottom {
    position: relative;
    margin-top: -60px;
    height: 60px;
    background: linear-gradient(to bottom, #0f172a, var(--bg, #f7f8fa));
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
    animation: heroFloat1 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
    animation: heroFloat2 10s ease-in-out infinite;
}

@keyframes heroFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, 30px) scale(1.1);
    }
}

@keyframes heroFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, -40px) scale(1.15);
    }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: #fff;
    letter-spacing: -1px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #38bdf8 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 520px;
    margin-bottom: 2.2rem;
    line-height: 1.7;
}

.hero-search {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.hero-search .input-group {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.06);
}

.hero-search .form-control {
    padding: 1rem 1.4rem;
    font-size: 0.95rem;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
}

.hero-search .form-control::placeholder {
    color: #94a3b8;
}

.hero-search .form-control:focus {
    box-shadow: none;
    background: #fff;
}

.hero-search .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
}

.hero-search .btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateX(2px);
}

.hero-stats {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

.hero-stat {
    padding: 16px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* -----------------------------------------
   Sections
   ----------------------------------------- */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text);
    letter-spacing: -0.3px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* -----------------------------------------
   Company Cards
   ----------------------------------------- */
.company-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.company-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.company-logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.company-logo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.company-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.company-card-title a {
    color: var(--text);
}

.company-card-title a:hover {
    color: var(--primary);
}

.company-card-category {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 500;
}

.company-card-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-grow: 1;
    margin: 0.6rem 0;
    line-height: 1.5;
}

.company-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-light);
    padding-top: 0.7rem;
    margin-top: auto;
}

.company-card-meta i {
    color: var(--primary);
    margin-right: 0.2rem;
}

/* -----------------------------------------
   Category Cards
   ----------------------------------------- */
.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    font-size: 1.3rem;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: #fff;
}

.category-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.category-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* -----------------------------------------
   Auth Pages
   ----------------------------------------- */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: var(--bg);
}

.auth-card {
    max-width: 420px;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}

/* -----------------------------------------
   Forms
   ----------------------------------------- */
.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
    color: var(--text);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-select option {
    background: var(--white);
    color: var(--text);
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.input-group-text {
    background: var(--bg) !important;
    border-color: var(--border) !important;
    color: var(--text-muted) !important;
}

/* -----------------------------------------
   Buttons
   ----------------------------------------- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius);
    transition: var(--transition);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: var(--radius);
    font-weight: 500;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-outline-secondary {
    border-color: var(--border);
    color: var(--secondary);
}

.btn-outline-secondary:hover {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
}

/* -----------------------------------------
   Company Detail
   ----------------------------------------- */
.company-detail-header {
    background: linear-gradient(135deg, #1a56db, #1648b5);
    padding: 3rem 0 2.5rem;
    margin-top: -72px;
    padding-top: calc(72px + 2.5rem);
}

.company-detail-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
}

.company-detail-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.company-detail-logo {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    background: #fff;
}

.company-detail-logo-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.company-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.company-info-card .info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-light);
}

.company-info-card .info-item:last-child {
    border-bottom: none;
}

.company-info-card .info-item i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 3px;
    width: 18px;
    text-align: center;
}

.text-primary-light {
    color: #93c5fd !important;
}

.bg-primary.bg-opacity-25 {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* -----------------------------------------
   Profile
   ----------------------------------------- */
.profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.my-company-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    transition: var(--transition);
}

.my-company-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* -----------------------------------------
   Pagination
   ----------------------------------------- */
.pagination .page-link {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 6px !important;
    margin: 0 2px;
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text-light);
}

/* -----------------------------------------
   Filter Sidebar
   ----------------------------------------- */
.filter-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    position: sticky;
    top: 85px;
}

.filter-card h5 {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.7rem;
    color: var(--text-muted);
    border-radius: 6px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.filter-list li a:hover,
.filter-list li a.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* -----------------------------------------
   Page Header
   ----------------------------------------- */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2.5rem 0 2rem;
    margin-top: -72px;
    padding-top: calc(72px + 1.5rem);
    margin-bottom: 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.page-header-bottom {
    height: 40px;
    background: linear-gradient(to bottom, #1e293b, var(--bg, #f7f8fa));
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 1rem;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
}

.page-header p {
    position: relative;
    z-index: 1;
}

.page-header nav {
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.page-header .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

/* -----------------------------------------
   Footer
   ----------------------------------------- */
.site-footer {
    background: #1f2937;
    padding: 2.5rem 0 1.2rem;
    border-top: none;
    margin-top: 3rem;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    margin-bottom: 0.8rem;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-links li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
}

/* -----------------------------------------
   Admin Panel
   ----------------------------------------- */
.admin-sidebar {
    background: var(--white);
    border-right: 1px solid var(--border);
    min-height: calc(100vh - 60px);
    padding: 1.2rem 0;
    position: sticky;
    top: 60px;
}

.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 1.3rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav li a:hover,
.admin-nav li a.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.admin-nav li a i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-card .stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.stat-card .stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.admin-table {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-table .table {
    margin-bottom: 0;
    color: var(--text);
}

.admin-table .table th {
    background: var(--bg);
    border-color: var(--border);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
}

.admin-table .table td {
    border-color: var(--border-light);
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    vertical-align: middle;
}

.admin-table .table tbody tr:hover {
    background: var(--bg);
}

/* -----------------------------------------
   Alerts
   ----------------------------------------- */
.alert {
    border-radius: var(--radius);
    border: none;
    font-size: 0.88rem;
}

/* -----------------------------------------
   Badges
   ----------------------------------------- */
.badge {
    font-weight: 500;
    padding: 0.3em 0.65em;
    font-size: 0.76rem;
}

/* -----------------------------------------
   Responsive
   ----------------------------------------- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .hero-stat {
        padding: 12px 18px;
    }

    .hero-stat-number {
        font-size: 1.2rem;
    }

    .hero-search .form-control {
        padding: 0.75rem 1rem;
    }

    .hero-search .btn {
        padding: 0.75rem 1.2rem;
    }

    .auth-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .nav-search-form {
        margin: 0.5rem 0;
    }

    .admin-sidebar {
        min-height: auto;
        position: static;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 4rem 0 3.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.6rem;
    }

    .hero-stat {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .hero-stat-number {
        margin-bottom: 0;
    }
}

/* -----------------------------------------
   Pricing Cards
   ----------------------------------------- */
.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pricing-popular {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(26, 86, 219, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pricing-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.pricing-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.pricing-subtitle {
    font-size: 0.78rem;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pricing-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.pricing-currency {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-top: -0.2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.35rem 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.pricing-footer {
    margin-top: auto;
}

/* -----------------------------------------
   Checkout / Payment Options
   ----------------------------------------- */
.payment-option-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.3rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.payment-option-label:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-option-label.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.payment-check {
    color: var(--border);
    font-size: 1.3rem;
    transition: var(--transition);
}

.payment-option-label.active .payment-check {
    color: var(--primary);
}

/* -----------------------------------------
   Admin Stat Cards (Orders)
   ----------------------------------------- */
.admin-stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
}

.admin-stat-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.admin-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

/* -----------------------------------------
   Reviews / Star Rating
   ----------------------------------------- */
.review-card {
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
}

.review-card:last-of-type {
    border-bottom: none;
}

.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star-rating i {
    color: #f59e0b;
    font-size: 0.9rem;
}

.star-rating .star-number {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 4px;
}

.star-input {
    display: inline-flex;
    gap: 4px;
    cursor: pointer;
}

.star-input .star-select {
    font-size: 1.5rem;
    color: var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.star-input .star-select.active,
.star-input .star-select:hover {
    color: #f59e0b;
}

.review-form-section {
    border-top: 1px solid var(--border-light);
    padding-top: 1.2rem;
}

/* -----------------------------------------
   Admin Theme V2
   ----------------------------------------- */
body.admin-theme {
    background:
        radial-gradient(1200px 460px at -10% -10%, rgba(37, 99, 235, 0.14), transparent 55%),
        radial-gradient(900px 360px at 110% 0%, rgba(14, 165, 233, 0.14), transparent 55%),
        #f4f7fc;
}

.admin-theme .admin-topbar {
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-height: 64px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.admin-theme .admin-brand {
    color: #1e40af;
    font-size: 1.08rem;
    letter-spacing: -0.25px;
}

.admin-theme .admin-view-link {
    border-color: #cbd5e1;
    color: #334155;
    border-radius: 10px;
}

.admin-theme .admin-view-link:hover {
    border-color: #1e40af;
    color: #1e40af;
    background: #eff6ff;
}

.admin-theme .admin-mobile-menu-btn {
    border-color: #cbd5e1;
    color: #334155;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-theme .admin-mobile-menu-btn:hover {
    border-color: #1e40af;
    color: #1e40af;
    background: #eff6ff;
}

.admin-theme .admin-mobile-offcanvas {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #e2e8f0;
    max-width: 280px;
}

.admin-theme .admin-mobile-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.admin-theme .admin-mobile-offcanvas .offcanvas-title {
    color: #e2e8f0;
}

.admin-theme .admin-mobile-offcanvas .admin-nav {
    padding: 0.6rem 0;
}

.admin-theme .admin-bell,
.admin-theme .admin-user-toggle {
    color: #475569;
    font-size: 1.05rem;
}

.admin-theme .admin-bell:hover,
.admin-theme .admin-user-toggle:hover {
    color: #1d4ed8;
}

.admin-theme .admin-notification-menu {
    width: 360px;
    max-height: 410px;
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.98);
}

.admin-theme .admin-shell {
    margin-top: 64px;
}

.admin-theme .admin-sidebar-col {
    width: 248px;
    flex-shrink: 0;
}

.admin-theme .admin-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border-right: 0;
    min-height: calc(100vh - 64px);
    top: 64px;
    box-shadow: inset -1px 0 0 rgba(148, 163, 184, 0.2);
}

.admin-theme .admin-nav li a {
    color: rgba(226, 232, 240, 0.78);
    border-left: 0;
    margin: 0.2rem 0.55rem;
    border-radius: 10px;
    padding: 0.62rem 0.85rem;
}

.admin-theme .admin-nav li a i {
    color: rgba(165, 180, 252, 0.95);
}

.admin-theme .admin-nav li a:hover {
    background: rgba(148, 163, 184, 0.14);
    color: #ffffff;
    transform: translateX(2px);
}

.admin-theme .admin-nav li a.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.36), rgba(14, 165, 233, 0.24));
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.3);
}

.admin-theme .admin-main {
    min-height: calc(100vh - 64px);
    padding: 1.75rem !important;
}

.admin-theme .admin-main h4 {
    letter-spacing: -0.3px;
}

.admin-theme .company-info-card,
.admin-theme .admin-table,
.admin-theme .card,
.admin-theme .stat-card,
.admin-theme .admin-stat-card,
.admin-theme .profile-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.admin-theme .stat-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.admin-theme .stat-card h6 {
    color: #0f172a !important;
    margin-bottom: 0.35rem;
}

.admin-theme .admin-stat-title {
    color: #64748b;
}

.admin-theme .admin-stat-value {
    color: #0f172a;
}

.admin-theme .table {
    color: #1f2937;
}

.admin-theme .table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
}

.admin-theme .table tbody tr {
    border-color: #eef2f7;
}

.admin-theme .table-hover tbody tr:hover {
    background: #eff6ff;
}

.admin-theme .btn {
    border-radius: 10px;
}

.admin-theme .btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    border-color: #1d4ed8;
}

.admin-theme .btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    border-color: #1e40af;
}

.admin-theme .btn-outline-secondary {
    border-color: #cbd5e1;
    color: #475569;
}

.admin-theme .btn-outline-secondary:hover {
    border-color: #94a3b8;
    color: #1e293b;
    background: #f8fafc;
}

.admin-theme .form-control,
.admin-theme .form-select {
    border-color: #d8e2f0;
    border-radius: 10px;
}

.admin-theme .form-control:focus,
.admin-theme .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.admin-theme .badge {
    border-radius: 8px;
    letter-spacing: 0.1px;
}

@media (max-width: 991.98px) {
    .admin-theme .admin-main {
        padding: 1rem !important;
    }
}
