/* ============================================================
   APNA Hyderabad — Main Stylesheet
   ============================================================ */

:root {
    --primary: #9C523C;
    --primary-dark: #7A3D2A;
    --primary-light: #D4785C;
    --accent: #F59E0B;
    --accent-light: #FBBF24;
    --cream: #FFFAF5;
    --cream-dark: #F5EDE0;
    --dark: #2D3436;
    --dark-light: #636E72;
    --success: #27AE60;
    --warning: #F39C12;
    --white: #FFFFFF;
    --bg-light: #FAFAFA;
    --border: #E0D5CC;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font);
    background: var(--cream);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   Navigation
   ============================================================ */

.navbar {
    background: linear-gradient(135deg, #2d3436 0%, #0f2e37 50%, #850500 100%);
    padding: 0.75rem 0;
    box-shadow: 0 2px 20px rgba(74, 48, 40, 0.25);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-dark .navbar-brand,
.navbar-dark .navbar-brand:hover {
    color: #fff;
}

.navbar-brand i {
    font-size: 1.6rem;
    color: var(--accent);
}

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

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85);
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}
.navbar-dark .navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.2);
}

/* Ensure generic a color doesn't leak into nav */
.navbar a { color: inherit; }
.navbar a:hover { color: inherit; }

.btn-accent {
    background: linear-gradient(135deg, var(--primary) 0%, #D63031 50%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #B02422 50%, #5A2A1A 100%);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-nav-cta,
a.btn-nav-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #D63031 50%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(133, 5, 0, 0.35);
}

.btn-nav-cta:hover,
a.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(133, 5, 0, 0.5);
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #B02422 50%, #5A2A1A 100%);
}

.btn-nav-cta i {
    font-size: 0.9rem;
}

/* Owner navbar buttons */
.btn-owner-nav {
    color: #ffffffcc !important;
    background: transparent !important;
    border: 1px solid #ffffff4d !important;
    font-weight: 500;
    font-size: 0.82rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-owner-nav:hover {
    color: #fff !important;
    border-color: #fff !important;
    background: rgba(255,255,255,0.06) !important;
}

/* ============================================================
   Hero Search
   ============================================================ */

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #D63031 50%, var(--primary-dark) 100%);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-5%, 5%); }
    100% { transform: translate(0, 0); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.search-box {
    background: var(--white);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    max-width: 650px;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    outline: none;
}

.search-box input::placeholder { color: var(--dark-light); }

.search-box button {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-box button:hover {
    background: var(--accent-light);
    transform: scale(1.02);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    margin-top: 0.5rem;
}

.search-suggestions.show { display: block; }

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item:hover { background: var(--cream); }
.search-suggestion-item i { color: var(--dark-light); width: 20px; }

/* Popular Searches */
.popular-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.popular-searches span {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.popular-searches a {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.15);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.popular-searches a:hover {
    background: rgba(255,255,255,0.25);
    color: var(--white);
}

/* ============================================================
   Section Styles
   ============================================================ */

.section-padding { padding: 4rem 0; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.section-link:hover { color: var(--primary-dark); }

.bg-white { background: var(--white); }
.bg-cream { background: var(--cream-dark); }

/* ============================================================
   Restaurant Card
   ============================================================ */

.restaurant-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--white);
}

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

.card-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--light);
    color: var(--gray);
    font-size: 2rem;
    text-decoration: none;
}

.restaurant-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.badge-status {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-open { background: var(--success); color: var(--white); }
.badge-closed { background: #e74c3c; color: var(--white); }

.restaurant-closed {
    opacity: 0.55;
    filter: grayscale(0.65);
    pointer-events: none;
}
.restaurant-closed a,
.restaurant-closed button {
    pointer-events: auto;
}

.badge-deal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success);
    color: var(--white);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.btn-favorite {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: var(--transition);
    color: var(--dark-light);
}

.btn-favorite:hover, .btn-favorite.favorited {
    color: var(--primary);
    transform: scale(1.1);
}

.btn-favorite.favorited i { font-weight: 900; }

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card-title a { color: var(--dark); }
.card-title a:hover { color: var(--primary); }

.card-text {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.restaurant-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rating {
    color: var(--warning);
    font-size: 0.8rem;
}

.rating small {
    color: var(--dark-light);
    font-size: 0.75rem;
}

.location {
    font-size: 0.8rem;
    color: var(--dark-light);
}

.location i { font-size: 0.7rem; }

.restaurant-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.price-range {
    font-weight: 700;
    color: var(--success);
    font-size: 0.9rem;
}

.delivery-badge {
    font-size: 0.75rem;
    color: var(--dark-light);
    background: var(--cream);
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
}

.delivery-badge i { color: var(--accent); }

/* ============================================================
   Category Cards
   ============================================================ */

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: var(--white);
}

.category-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

.category-count {
    font-size: 0.8rem;
    color: var(--dark-light);
    margin-top: 0.25rem;
}

/* ============================================================
   Food Card
   ============================================================ */

.food-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--white);
}

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

.food-card .card-img-wrapper {
    height: 160px;
}

.food-card-body {
    padding: 1rem;
}

.food-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.food-card-title a { color: var(--dark); }

.food-card-restaurant {
    font-size: 0.8rem;
    color: var(--dark-light);
    margin-bottom: 0.5rem;
}

.food-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.food-card-price .original {
    font-size: 0.85rem;
    color: var(--dark-light);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 0.5rem;
}

/* ============================================================
   Ad Banner
   ============================================================ */

.ad-banner {
    background: var(--cream-dark);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
}

.ad-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.5);
    color: var(--white);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ============================================================
   Popup Ad Modal
   ============================================================ */

.ad-popup-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.ad-popup-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-popup-header .ad-label {
    position: static;
}

.ad-popup-body img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================================
   Area Cards
   ============================================================ */

.area-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.area-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(4px);
}

.area-card i {
    font-size: 1.25rem;
    color: var(--primary);
}

.area-card:hover i { color: var(--white); }

.area-card .area-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.area-card .area-count {
    font-size: 0.8rem;
    color: var(--dark-light);
    margin-left: auto;
}

.area-card:hover .area-count { color: rgba(255,255,255,0.8); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 0;
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand i { color: var(--accent); }

.footer-about {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.site-footer h5 {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* ============================================================
   Modal Styles
   ============================================================ */

.modal-content {
    border: none;
    border-radius: var(--radius);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal .form-control {
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.modal .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 101, 77, 0.1);
}

/* ============================================================
   Filter Sidebar
   ============================================================ */

.filter-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.filter-group {
    margin-bottom: 1.25rem;
}

.filter-group:last-child { margin-bottom: 0; }

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-light);
    margin-bottom: 0.5rem;
    display: block;
}

.filter-group .form-select,
.filter-group .form-control {
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* ============================================================
   Page Header
   ============================================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #D63031 50%, var(--primary-dark) 100%);
    padding: 2.5rem 0;
    color: var(--white);
}

.page-header h1 {
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

/* ============================================================
   Restaurant Detail
   ============================================================ */

.restaurant-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
}

.restaurant-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.restaurant-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 1.5rem 2rem 3rem;
    color: var(--white);
}

.restaurant-info-header {
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.restaurant-info-header .restaurant-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius);
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
    object-fit: cover;
}

.restaurant-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
}

/* Tabs */
.nav-tabs .nav-link {
    border: none;
    color: var(--dark-light);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    position: relative;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-dark);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Review Card */
.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-light);
    font-weight: 700;
    font-size: 1.1rem;
}

.review-user {
    font-weight: 600;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--dark-light);
}

/* ============================================================
   Buttons & Utilities
   ============================================================ */

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #D63031 50%, var(--primary-dark) 100%);
    border: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #B02422 50%, #5A2A1A 100%);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #D63031 50%, var(--primary-dark) 100%);
    border-color: transparent;
    color: var(--white);
}

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

.btn-upgrade {
    background: linear-gradient(135deg, var(--primary) 0%, #D63031 50%, var(--primary-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
}
.btn-upgrade:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #B02422 50%, #5A2A1A 100%);
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline-upgrade {
    color: #DC2626;
    border-color: #DC2626;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-outline-upgrade:hover {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: #fff;
    border-color: transparent;
}
.btn-outline-upgrade:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #D63031 50%, var(--primary-dark) 100%);
    border-color: transparent;
    color: #fff;
}
.bg-upgrade { background: linear-gradient(135deg, var(--primary) 0%, #D63031 50%, var(--primary-dark) 100%) !important; }
.text-upgrade { color: #D63031 !important; }

/* ============================================================
   Nav Pills (Restaurants / Minimarts tabs)
   ============================================================ */
.nav-pills {
    --bs-nav-pills-link-active-bg: var(--primary);
}
.nav-pills .nav-link {
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
}
.nav-pills .nav-link:hover {
    color: var(--primary-dark);
    background: var(--cream-dark);
}
.nav-pills .nav-link.active {
    color: #fff;
}

.star-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
}

.star-input i {
    font-size: 1.5rem;
    color: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.star-input i:hover,
.star-input i:hover ~ i,
.star-input.active i {
    color: var(--warning);
}

.alert {
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.alert-success { background: #E8F8F0; color: var(--success); }
.alert-danger { background: #FDEDEC; color: var(--primary); }

.pagination { gap: 6px; }

.pagination .page-link {
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--cream-dark);
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================================
   Advertise Page
   ============================================================ */

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pricing-card.popular {
    border-color: var(--primary);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    padding: 1.5rem;
    background: var(--cream);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.pricing-header h4 {
    margin: 0;
    font-weight: 700;
    color: var(--dark);
}

.pricing-header p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-body {
    padding: 1.5rem;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
}

.pricing-amount small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--success);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--cream);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.75rem;
    position: sticky;
    top: 90px;
}

.contact-card h4,
.contact-card h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-card h4 i,
.contact-card h5 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.payment-info {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

/* ============================================================
   Owner Register Page
   ============================================================ */

.owner-register {
    overflow-x: hidden;
}

.register-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #D63031 50%, var(--primary-dark) 100%);
    min-height: calc(100vh - 76px);
    position: relative;
}

.register-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.min-vh-80 {
    min-height: calc(100vh - 76px);
}

.register-info-col {
    padding: 3rem 0;
}

.register-hero-content {
    max-width: 540px;
}

.register-badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.15);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.register-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.register-hero-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.register-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
}

.register-stat {
    text-align: center;
}

.register-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.register-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.1);
}

.register-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.register-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.register-benefit-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.register-benefit-text {
    display: flex;
    flex-direction: column;
}

.register-benefit-text strong {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
}

.register-benefit-text span {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Register Form Card */
.register-form-col {
    padding: 3rem 0;
}

.register-form-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
}

.register-form-header {
    text-align: center;
    padding: 2rem 2rem 0;
}

.register-form-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.3);
}

.register-form-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--dark);
}

.register-form-header p {
    font-size: 0.88rem;
    color: var(--text-muted, #777);
    margin-bottom: 0;
}

.register-form {
    padding: 1.75rem 2rem 0;
}

.register-form .form-floating > .form-control {
    border-radius: 10px;
    border: 2px solid var(--border);
    padding: 1rem 0.75rem 0.25rem;
    height: 56px;
    font-size: 0.92rem;
    transition: var(--transition);
}

.register-form .form-floating > .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.register-form .form-floating > label {
    padding: 0.85rem 0.75rem;
    font-size: 0.88rem;
    color: var(--dark-light);
}

.register-form .form-floating > label i {
    width: 18px;
    color: var(--primary);
    margin-right: 4px;
}

.btn-register-submit {
    background: linear-gradient(135deg, var(--primary) 0%, #D63031 50%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem;
    border-radius: 10px;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-register-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #B02422 50%, #5A2A1A 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(133, 5, 0, 0.35);
    color: var(--white);
}

.btn-register-submit i {
    margin-right: 6px;
}

.register-form-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    margin-top: 1.75rem;
}

.register-form-footer span {
    font-size: 0.85rem;
    color: var(--dark-light);
    display: block;
    margin-bottom: 0.25rem;
}

.register-form-footer a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
}

.register-form-footer a:hover {
    color: var(--primary-dark);
}

/* Trust Bar */
.register-trust {
    background: var(--cream);
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.trust-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-items {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--dark-light);
}

.trust-item i {
    color: var(--success);
    font-size: 0.75rem;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 991px) {
    .hero-title { font-size: 1.75rem; }
    .hero-section { padding: 2.5rem 0 2rem; }
    .restaurant-hero { height: 200px; }
    .restaurant-info-header { margin-top: -40px; }
    .restaurant-info-header .restaurant-logo { width: 80px; height: 80px; }
}

@media (max-width: 767px) {
    .search-box { border-radius: var(--radius); flex-direction: column; }
    .search-box input { width: 100%; }
    .search-box button { width: 100%; border-radius: var(--radius-sm); }
    .section-title { font-size: 1.35rem; }
    .section-padding { padding: 2.5rem 0; }
    .card-img-wrapper { height: 150px; }
    .restaurant-hero { height: 160px; }
    .restaurant-info-header .restaurant-logo { width: 64px; height: 64px; }
    .restaurant-info-header { margin-top: -30px; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .footer-brand { font-size: 1.1rem; }
}

@media (max-width: 575px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .card-img-wrapper { height: 130px; }
}

/* ============================================================
   Premium SaaS Form Styles (Admin & Owner)
   ============================================================ */

.premium-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
}

.premium-card-body {
    padding: 2rem;
}

@media (max-width: 767px) {
    .premium-card-body { padding: 1.25rem; }
}

/* Section Dividers */
.section-divider {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dark-light);
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--cream);
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Input Groups with Icons */
.input-icon-group {
    position: relative;
}

.input-icon-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-light);
    font-size: 0.85rem;
    opacity: 0.5;
    pointer-events: none;
    z-index: 2;
    transition: var(--transition);
}

.input-icon-group .form-control,
.input-icon-group .form-select {
    padding-left: 2.5rem;
}

.input-icon-group .form-control:focus ~ .input-icon,
.input-icon-group .form-select:focus ~ .input-icon {
    opacity: 0.8;
    color: var(--primary);
}

/* Premium Button */
.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: 0.7rem 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(184,101,77,0.3);
}

.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(184,101,77,0.4);
    color: var(--white);
}

.btn-premium:active {
    transform: translateY(0);
}

/* Enhanced Toggle Switches */
.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
    border-color: var(--border);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23d4bfaa'/%3e%3c/svg%3e");
    transition: var(--transition);
}

.form-switch .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184,101,77,0.12);
}

.form-switch .form-check-label {
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding-top: 2px;
}

/* Upload Area */
.upload-area {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--cream);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--primary);
    background: #FFF5EF;
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-light);
    pointer-events: none;
}

.upload-placeholder i {
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.6;
}

.upload-placeholder span {
    font-size: 0.85rem;
    font-weight: 500;
}

.upload-placeholder small {
    font-size: 0.75rem;
    opacity: 0.7;
}

.upload-preview {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    border-radius: 8px;
    pointer-events: none;
}

/* Form input refinements */
.premium-card .form-control,
.premium-card .form-select {
    border: 2px solid var(--cream-dark);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    background: var(--white);
    transition: var(--transition);
}

.premium-card .form-control:focus,
.premium-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(184,101,77,0.08);
    background: var(--white);
}

.premium-card .form-control-lg {
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
}

.premium-card .form-control::placeholder {
    color: #bbb0a4;
    font-size: 0.85rem;
}

.premium-card .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--dark-light);
    margin-bottom: 0.4rem;
}

.premium-card textarea.form-control {
    background: var(--cream);
    border-style: dashed;
}

.premium-card textarea.form-control:focus {
    background: var(--white);
    border-style: solid;
}

/* Legal pages (Privacy, Terms, Disclaimer) */
.legal-content { max-width: 800px; }
.legal-content h3 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--dark); }
.legal-content p { line-height: 1.8; color: #555; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { margin-bottom: 0.5rem; line-height: 1.7; color: #555; }

/* Contact page */
.contact-card { padding: 2rem 1.5rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-card:hover { box-shadow: var(--shadow-hover); }
.contact-icon { width: 56px; height: 56px; margin: 0 auto 1rem; background: var(--cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--accent); }

/* About page stats */
.stat-card { padding: 2rem 1rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.stat-label { font-size: 0.9rem; color: var(--dark-light); margin-top: 0.25rem; }

/* Responsive */
@media (max-width: 991px) {
    .premium-card-body { padding: 1.5rem; }
}
