@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #126b59;
    --primary-dark: #0b5143;
    --accent: #e6a743;
    --text: #20332e;
    --muted: #75837e;
    --bg: #f6f8f6;
    --white: #fff;
    --border: #e8eeea;
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 36px)); margin: auto; }

.topbar { background: #fff; border-bottom: 1px solid var(--border); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--primary); font-size: 25px; font-weight: 900; }
.brand-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--primary); }
.brand small { display: block; font-size: 10px; color: var(--muted); font-weight: 500; margin-top: -5px; }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
nav a:hover { color: var(--primary); }
.merchant-link { padding: 10px 18px; border-radius: 10px; color: var(--primary); background: #eaf4f0; }

.hero { background: linear-gradient(120deg, #0b5143, #167965); color: white; padding: 76px 0 86px; position: relative; overflow: hidden; }
.hero:after { content: ""; position: absolute; width: 380px; height: 380px; border: 1px solid #ffffff20; border-radius: 50%; left: -100px; top: -180px; box-shadow: 0 0 0 45px #ffffff09, 0 0 0 90px #ffffff07; }
.hero-content { position: relative; z-index: 1; }
.eyebrow, .section-kicker { color: var(--accent); font-size: 13px; font-weight: 800; }
.hero h1 { font-size: clamp(34px, 5vw, 55px); line-height: 1.4; margin: 12px 0; font-weight: 900; }
.hero h1 span { color: #f1c778; }
.hero p { color: #e0eeea; margin: 0 0 30px; font-size: 16px; }

.search-box { background: #fff; color: var(--text); padding: 12px; border-radius: 17px; display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; box-shadow: 0 15px 40px #002d242c; }
.search-field { padding: 5px 13px; border-left: 1px solid var(--border); min-width: 0; }
.search-field label { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.search-field input, .search-field select { width: 100%; border: 0; outline: 0; padding: 6px 0; color: var(--text); background: transparent; font: inherit; font-size: 13px; }
.search-button { border: 0; border-radius: 12px; padding: 0 26px; background: var(--accent); color: #33250d; font: inherit; font-weight: 900; cursor: pointer; }
.search-button:hover { background: #f0bb61; }
.hero-note { margin-top: 15px; font-size: 12px; color: #c9e2d9; }

.section { padding-top: 65px; padding-bottom: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.section-kicker { color: var(--primary); }
.section-heading h2, .merchant-banner h2 { margin: 3px 0 0; font-size: 25px; font-weight: 900; }
.muted { color: var(--muted); font-size: 12px; }

.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.category-card { min-height: 125px; background: #fff; border: 1px solid var(--border); border-radius: 15px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; transition: .2s; text-align: center; padding: 12px 5px; }
.category-card:hover, .category-card.active { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 24px #164c3d12; }
.category-icon { width: 48px; height: 48px; display: grid; place-items: center; background: #eef6f2; border-radius: 14px; font-size: 24px; }

.businesses-section { margin-top: 55px; padding-bottom: 70px; background: #fff; }
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.business-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: white; }
.business-placeholder { height: 110px; display: grid; place-items: center; font-size: 40px; background: #eef5f1; }
.business-info { padding: 17px; }
.business-info h3 { margin: 0 0 6px; font-size: 17px; }
.business-info p { color: var(--muted); font-size: 12px; line-height: 1.8; min-height: 42px; }
.business-location { color: var(--muted); font-size: 11px; margin: 12px 0; }
.contact-link, .reset-link { display: inline-block; color: var(--primary); font-size: 12px; font-weight: 800; padding: 8px 14px; background: #edf6f2; border-radius: 9px; }

.empty-state { text-align: center; background: var(--bg); border: 1px dashed #d4e1da; padding: 45px 15px; border-radius: 18px; }
.empty-state div { font-size: 35px; }
.empty-state h3 { margin: 10px 0 3px; }
.empty-state p { color: var(--muted); font-size: 13px; }

.merchant-banner { margin-top: 55px; margin-bottom: 65px; border-radius: 20px; padding: 30px 38px; display: flex; justify-content: space-between; align-items: center; background: #eaf3ee; }
.merchant-banner p { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.banner-icon { font-size: 55px; }
.footer { background: #103e34; color: #fff; padding: 25px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.footer-brand { color: white; font-size: 20px; }
.footer-brand .brand-icon { background: #ffffff20; }
.footer-brand small { color: #c1d7cf; }
.footer p { font-size: 11px; color: #c1d7cf; }

@media(max-width: 850px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .search-box { grid-template-columns: 1fr 1fr; }
    .search-field:first-child { grid-column: 1 / -1; }
    .search-button { min-height: 48px; }
    .business-grid { grid-template-columns: repeat(2, 1fr); }
    nav { gap: 12px; }
}
@media(max-width: 560px) {
    .container { width: min(100% - 24px, 1160px); }
    .nav { min-height: 70px; flex-wrap: wrap; padding: 12px 0; }
    nav { width: 100%; justify-content: space-between; font-size: 11px; }
    .hero { padding: 48px 0 55px; }
    .hero p { font-size: 13px; }
    .search-box { grid-template-columns: 1fr; gap: 3px; }
    .search-field { border-left: 0; border-bottom: 1px solid var(--border); padding: 8px; }
    .search-field:first-child { grid-column: auto; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .category-card { min-height: 105px; font-size: 12px; }
    .section { padding-top: 45px; }
    .section-heading h2 { font-size: 20px; }
    .business-grid { grid-template-columns: 1fr; }
    .merchant-banner { padding: 23px; }
    .merchant-banner h2 { font-size: 19px; }
    .banner-icon { font-size: 35px; }
    .footer-content { flex-direction: column; align-items: flex-start; }
}

/* Dalily authentication and merchant dashboard */
.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 25px 12px;
    background: linear-gradient(135deg, #eaf3ee, #f8faf8);
}
.auth-container {
    width: min(460px, 100%);
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 15px 45px #164c3d12;
}
.auth-brand {
    display: inline-block;
    color: var(--primary);
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 12px;
}
.auth-container h1 {
    margin: 0;
    font-size: 25px;
    font-weight: 900;
}
.auth-subtitle {
    color: var(--muted);
    font-size: 13px;
    margin: 8px 0 22px;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.auth-form label {
    font-size: 13px;
    font-weight: 800;
    margin-top: 7px;
}
.auth-form input {
    width: 100%;
    min-height: 47px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 13px;
    font: inherit;
    font-size: 14px;
    outline: none;
    background: #fcfdfc;
}
.auth-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #126b5915;
}
.auth-button {
    min-height: 49px;
    border: 0;
    border-radius: 11px;
    margin-top: 15px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
.auth-button:hover { background: var(--primary-dark); }
.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 12px 0;
    font-size: 12px;
    line-height: 1.9;
}
.auth-alert.error { background: #fff0ef; color: #a52b24; }
.auth-alert.success { background: #eaf7ef; color: #176b3a; }
.auth-bottom {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin: 22px 0 10px;
}
.auth-bottom a, .auth-home {
    color: var(--primary);
    font-weight: 900;
}
.auth-home {
    display: block;
    text-align: center;
    font-size: 12px;
    margin-top: 14px;
}
.dashboard-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.dashboard-nav {
    min-height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.logout-button {
    border: 0;
    border-radius: 9px;
    padding: 10px 16px;
    background: #fff0ef;
    color: #a52b24;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.dashboard-main { padding-top: 35px; padding-bottom: 60px; }
.welcome-card, .account-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 25px;
    margin-bottom: 25px;
}
.welcome-card h1 { margin: 5px 0; font-size: 25px; }
.welcome-card p, .account-card p {
    color: var(--muted);
    font-size: 13px;
}
.dashboard-section { padding: 20px 0 35px; }
.merchant-business-list {
    display: grid;
    gap: 12px;
}
.merchant-business-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 17px;
}
.merchant-business-item h3 { margin: 0 0 8px; }
.status-label {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 8px;
    background: #fff6df;
    color: #805c14;
    font-size: 11px;
    font-weight: 800;
}
.account-card h2 { margin-top: 0; font-size: 19px; }

@media(max-width: 560px) {
    .auth-container { padding: 23px 18px; }
    .dashboard-nav .brand { font-size: 20px; }
    .welcome-card h1 { font-size: 21px; }
}
