/* =====================================================
   01. GLOBAL DESIGN VARIABLES
   Main colours, borders, shadows and shared radius
===================================================== */
:root {
      --blue: #0866d9; --blue-dark: #082d55; --navy: #061f3c;
      --green: #20a565; --ink: #10233f; --muted: #65758b;
      --line: #e3eaf2; --surface: #f5f8fc; --white: #fff;
      --shadow: 0 8px 24px rgba(16, 45, 82, .08);
      --radius: 16px;
    }
    /* =====================================================
   02. GLOBAL / RESET STYLES
===================================================== */
* { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, "Noto Sans Sinhala", sans-serif; }
    a { color: inherit; text-decoration: none; }
    button, input, select, textarea { font: inherit; }
    button { cursor: pointer; }
    .container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
    /* =====================================================
   03. HEADER AND NAVIGATION
===================================================== */
.topbar { height: 76px; display: flex; align-items: center; background: #fff; position: relative; z-index: 5; border-bottom: 1px solid rgba(227,234,242,.75); }
    .nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .brand { display: flex; align-items: center; gap: 10px; min-width: 220px; }
    .brand-mark { width: 43px; height: 43px; border-radius: 14px 14px 14px 4px; transform: rotate(-4deg); display: grid; place-items: center; color: white; background: linear-gradient(145deg, #1386ff, #0750b2); box-shadow: 0 6px 14px #0866d933; }
    .brand-mark svg { transform: rotate(4deg); }
    .brand-name { font-size: 23px; font-weight: 800; letter-spacing: -.8px; line-height: 1.05; }
    .brand-name span { color: var(--blue); }
    .brand-tag { font-size: 10px; color: #62738a; margin-top: 4px; letter-spacing: .1px; }
    .navlinks { display: flex; align-items: center; gap: 27px; font-size: 13px; font-weight: 600; color: #233753; }
    .navlinks a:hover, .navlinks a.active { color: var(--blue); }
    .nav-actions { display: flex; align-items: center; gap: 10px; }
    .btn { border: 0; border-radius: 11px; padding: 12px 17px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .2s ease; }
    .btn-primary { color: white; background: var(--blue); box-shadow: 0 5px 14px #0866d925; }
    .btn-primary:hover { background: #0055bd; transform: translateY(-1px); }
    .btn-outline { color: var(--blue); border: 1px solid #cfe0f7; background: white; }
    .menu-toggle { display: none; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 9px 11px; color: var(--ink); }
    /* =====================================================
   04. HERO BANNER AND SEARCH AREA
===================================================== */
.hero { min-height: 385px; color: white; position: relative; isolation: isolate; display: flex; align-items: center; text-align: center; background: #123d60; overflow: hidden; }
    .hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2200&q=85") center 48%/cover; }
    .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,25,48,.68), rgba(4,29,54,.44), rgba(4,25,48,.58)), linear-gradient(0deg, rgba(3,23,44,.58), transparent 70%); }
    .hero-content { padding: 45px 0 35px; width: 100%; }
    .eyebrow { font-size: 10px; letter-spacing: 3px; font-weight: 800; color: #b7e5ff; text-transform: uppercase; margin-bottom: 12px; }
    h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -1.7px; margin: 0; font-weight: 800; }
    h1 span { color: #ffd52f; display: block; }
    .hero-si { margin: 13px 0 6px; font-size: clamp(15px, 2vw, 20px); font-weight: 700; }
    .hero-sub { margin: 0 auto 24px; color: #f0f6ff; font-size: 14px; max-width: 650px; line-height: 1.6; }
    .searchbox { width: min(860px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 190px 135px; gap: 5px; padding: 5px; border-radius: 16px; background: white; box-shadow: 0 12px 32px #001a3d4a; text-align: left; }
    .search-field { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 13px; color: #59708b; }
    .search-field input { width: 100%; border: 0; outline: 0; min-width: 0; color: var(--ink); padding: 12px 0; font-size: 13px; background: transparent; }
    .searchbox select { border: 1px solid #e5edf7; border-radius: 11px; padding: 0 12px; color: #223955; background: #fff; font-size: 12px; font-weight: 600; outline: 0; }
    .searchbox .btn { border-radius: 11px; }
    .popular { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 17px; font-size: 11px; }
    .popular strong { color: #fff; margin-right: 3px; }
    .chip { color: white; border: 1px solid #ffffff38; background: #ffffff20; padding: 7px 12px; border-radius: 99px; font-size: 11px; }
    .chip:hover { background: #fff; color: var(--blue-dark); }
    /* =====================================================
   05. SHARED SECTION LAYOUT AND HEADINGS
===================================================== */
.section { padding: 28px 0; }
    .section-soft { background: var(--surface); }
    .section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
    .section-title { margin: 0; font-size: clamp(22px, 2.5vw, 28px); letter-spacing: -.7px; font-weight: 800; }
    .section-title::before { content: ""; display: inline-block; width: 5px; height: 27px; background: var(--blue); border-radius: 9px; margin-right: 11px; vertical-align: -4px; }
    .section-sub { margin: 5px 0 0 16px; color: var(--muted); font-size: 13px; }
    .text-link { color: var(--blue); font-size: 12px; font-weight: 700; white-space: nowrap; }
    /* =====================================================
   06. CATEGORY CARDS
===================================================== */
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
    .category-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 9px #0b2b4d08; transition: .2s; }
    .category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c4dcfa; }
    .category-photo { height: 86px; position: relative; background: #dbe7f5; overflow: hidden; }
    .category-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
    .category-card:hover .category-photo img { transform: scale(1.06); }
    .category-icon { position: absolute; bottom: 8px; left: 10px; display: grid; place-items: center; width: 37px; height: 37px; border: 2px solid #ffffffaa; border-radius: 12px; color: white; font-size: 18px; box-shadow: 0 4px 10px #00152e2a; }
    .category-info { padding: 10px 11px 11px; display: flex; align-items: center; gap: 6px; }
    .category-copy { flex: 1; min-width: 0; }
    .category-name { font-size: 11px; line-height: 1.35; font-weight: 800; }
    .category-si { font-family: "Noto Sans Sinhala", sans-serif; font-size: 10px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
    .arrow-circle { width: 23px; height: 23px; flex: 0 0 23px; border: 1px solid var(--line); color: #44617f; border-radius: 50%; display: grid; place-items: center; font-size: 15px; }
    /* =====================================================
   07. ADD YOUR BUSINESS BANNER
===================================================== */
.owner-banner { grid-column: span 3; border-radius: 15px; border: 1px solid #b9dcff; background: linear-gradient(120deg, #eaf5ff, #f5fbff); padding: 18px 22px; display: flex; align-items: center; gap: 17px; }
    .owner-icon { width: 67px; height: 67px; flex: 0 0 67px; display: grid; place-items: center; border-radius: 20px; background: #d5eaff; color: var(--blue); font-size: 32px; }
    .owner-copy { flex: 1; }
    .owner-copy h3 { margin: 0 0 5px; font-size: 16px; }
    .owner-copy p { margin: 0; color: #5e7189; font-size: 12px; line-height: 1.6; }
    .free-tag { color: #12834c; background: #d9f8e7; border-radius: 8px; padding: 7px 9px; font-size: 10px; font-weight: 800; white-space: nowrap; }
    /* =====================================================
   08. FEATURED BUSINESS CARDS
===================================================== */
.business-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
    .business-card { border: 1px solid var(--line); background: white; border-radius: 13px; overflow: hidden; transition: .2s; }
    .business-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
    .business-image { height: 130px; position: relative; background: #dce7f2; }
    .business-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .status { position: absolute; left: 9px; top: 9px; color: white; background: #16a765; border-radius: 99px; padding: 5px 8px; font-size: 10px; font-weight: 700; }
    .heart { position: absolute; top: 8px; right: 9px; border: 0; border-radius: 50%; width: 30px; height: 30px; color: white; background: #001b3a62; font-size: 19px; line-height: 1; }
    .heart.saved { color: #ff4f74; background: white; }
    .business-details { padding: 11px; }
    .business-details h3 { font-size: 13px; margin: 0 0 5px; }
    .business-type { font-size: 11px; color: var(--muted); }
    .business-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 10px; color: #58708d; }
    .rating { color: #f2a900; letter-spacing: 1px; font-size: 13px; }
    .rating small { color: #58708d; letter-spacing: 0; font-size: 10px; }
    .empty-state { display: none; grid-column: 1/-1; padding: 35px 15px; text-align: center; color: var(--muted); border: 1px dashed #c7d5e5; border-radius: 14px; }
    /* =====================================================
   09. HOW DIGANAHUB WORKS CARDS
===================================================== */
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
    .how-card { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 23px; }
    .how-number { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: #e7f1ff; color: var(--blue); font-weight: 800; margin-bottom: 14px; }
    .how-card h3 { margin: 0 0 7px; font-size: 15px; }
    .how-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
    /* =====================================================
   10. FOOTER AND SOCIAL LINKS
===================================================== */
footer { color: #eaf2ff; background: var(--navy); padding: 29px 0 17px; }
    .footer-main { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
    footer .brand-tag { color: #b4c8df; }
    .footer-links { display: flex; gap: 18px; flex-wrap: wrap; color: #d7e6f8; font-size: 12px; }
    .footer-links a:hover { color: white; }
    .socials { display: flex; gap: 9px; }
    .socials a { width: 31px; height: 31px; border: 1px solid #ffffff30; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
    .copyright { border-top: 1px solid #ffffff1a; margin-top: 22px; padding-top: 15px; display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: #a8bdd6; }
    /* =====================================================
   11. ADD BUSINESS MODAL AND FORM
===================================================== */
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 20; background: #03172dcc; padding: 20px; align-items: center; justify-content: center; }
    .modal-backdrop.open { display: flex; }
    .modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: white; border-radius: 18px; box-shadow: 0 25px 70px #00152e55; padding: 25px; }
    .modal-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 20px; }
    .modal-head h2 { margin: 0; font-size: 22px; }
    .modal-head p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
    .close-modal { border: 0; border-radius: 9px; background: #eef3f8; width: 34px; height: 34px; font-size: 20px; color: var(--ink); }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
    .form-group { display: flex; flex-direction: column; gap: 6px; }
    .form-group.full { grid-column: 1/-1; }
    .form-group label { font-size: 12px; font-weight: 700; }
    .form-group input, .form-group select, .form-group textarea { border: 1px solid #d9e3ee; border-radius: 10px; padding: 11px 12px; outline: none; color: var(--ink); background: white; font-size: 13px; }
    .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #0866d915; }
    .form-note { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 14px 0; }
    /* =====================================================
   12. TOAST / NOTIFICATION MESSAGE
===================================================== */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 30; background: #082d55; color: white; border-radius: 12px; padding: 13px 18px; box-shadow: var(--shadow); font-size: 13px; transition: .25s; width: max-content; max-width: calc(100% - 30px); }
    .toast.show { opacity: 1; transform: translate(-50%, 0); }
    /* =====================================================
   13. RESPONSIVE LAYOUT — SMALL LAPTOP / TABLET
===================================================== */
@media (max-width: 1050px) {
      .navlinks { gap: 16px; }
      .brand { min-width: auto; }
      .category-grid, .business-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .owner-banner { grid-column: span 2; }
      .category-card:nth-of-type(n+15) { display: block; }
    }
    /* =====================================================
   14. RESPONSIVE LAYOUT — MOBILE
===================================================== */
@media (max-width: 760px) {
      .topbar { height: 68px; }
      .container { width: min(100% - 26px, 620px); }
      .brand-name { font-size: 21px; }
      .brand-tag { font-size: 9px; }
      .menu-toggle { display: inline-flex; }
      .nav-actions .btn { display: none; }
      .navlinks { display: none; position: absolute; top: 67px; left: 0; right: 0; background: white; padding: 17px 24px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 18px #00152e12; flex-direction: column; align-items: stretch; gap: 0; }
      .navlinks.open { display: flex; }
      .navlinks a { padding: 12px 0; border-bottom: 1px solid #edf1f6; }
      .hero { min-height: 440px; }
      .hero-content { padding: 40px 0 28px; }
      .hero-sub { font-size: 13px; }
      .searchbox { grid-template-columns: 1fr; padding: 7px; gap: 7px; }
      .search-field { min-height: 44px; }
      .searchbox select { height: 43px; }
      .searchbox .btn { height: 44px; }
      .popular { margin-top: 13px; gap: 6px; }
      .popular strong { width: 100%; }
      .section { padding: 24px 0; }
      .section-head { align-items: start; }
      .section-title { font-size: 23px; }
      .section-sub { font-size: 12px; }
      .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
      .category-photo { height: 94px; }
      .category-name { font-size: 11px; }
      .category-info { padding: 10px 9px; }
      .owner-banner { grid-column: 1/-1; padding: 16px; flex-wrap: wrap; }
      .owner-icon { width: 50px; height: 50px; flex-basis: 50px; font-size: 25px; }
      .owner-banner .btn { margin-left: 0; }
      .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
      .business-image { height: 120px; }
      .how-grid { grid-template-columns: 1fr; }
      .footer-main { align-items: flex-start; flex-direction: column; }
      .footer-links { gap: 13px; }
      .copyright { flex-direction: column; }
    }
    /* =====================================================
   15. RESPONSIVE LAYOUT — VERY SMALL PHONES
===================================================== */
@media (max-width: 380px) {
      .category-photo { height: 78px; }
      .category-icon { width: 32px; height: 32px; font-size: 16px; }
      .category-name { font-size: 10px; }
      .business-image { height: 100px; }
      .free-tag { display: none; }
    }
/* =====================================================
   16. ENGLISH / SINHALA LANGUAGE SWITCH
===================================================== */
.language-switch{display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:10px;padding:4px 7px;white-space:nowrap;color:#8090a4;font-size:12px}
.lang-btn{border:0;background:transparent;color:#53657b;padding:5px 4px;border-radius:6px;font-size:12px;font-weight:700}
.lang-btn.active{color:var(--blue);background:#eaf3ff}
@media(max-width:760px){.nav{gap:8px}.nav-actions{gap:6px}.language-switch{gap:2px;padding:3px 4px}.lang-btn{font-size:10px;padding:5px 2px}}

/* =====================================================
   17. DESCRIPTION CHARACTER COUNTER
===================================================== */
.word-counter{margin-top:5px;text-align:right;color:var(--muted);font-size:11px}.word-counter.limit-reached{color:#c62828;font-weight:700}
/* ==================================
   DIGANAHUB UPGRADE PLANS
================================== */

/* =====================================================
   18. UPGRADE PLANS — BASIC / STANDARD / PREMIUM
===================================================== */
.upgrade-section {
    padding: 5px 0;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.upgrade-heading {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 25px;
}

.upgrade-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #0969da;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.upgrade-heading h2 {
    margin: 0 0 12px;
    color: #0b2545;
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 800;
}

.upgrade-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.upgrade-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.upgrade-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #dce6f2;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(15, 45, 80, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .upgrade-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(15, 45, 80, 0.11);
    }

.upgrade-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
}

.upgrade-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eaf3ff;
    font-size: 24px;
}

.upgrade-duration {
    padding: 7px 11px;
    color: #245b9e;
    background: #eef5ff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.upgrade-card h3 {
    margin: 0 0 8px;
    color: #0b2545;
    font-size: 23px;
    font-weight: 800;
}

.upgrade-description {
    min-height: 42px;
    margin: 0 0 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.upgrade-price {
    color: #0866d9;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1px;
}

    .upgrade-price span {
        font-size: 17px;
        letter-spacing: 0;
    }

.upgrade-period {
    margin: 4px 0 22px;
    color: #64748b;
    font-size: 13px;
}

.upgrade-features {
    display: grid;
    gap: 13px;
    margin: 0 0 28px;
    padding: 20px 0 0;
    border-top: 1px solid #edf1f7;
    list-style: none;
}

    .upgrade-features li {
        color: #334155;
        font-size: 14px;
        line-height: 1.5;
    }

.upgrade-button {
    width: 100%;
    margin-top: auto;
    padding: 13px 16px;
    border: 1px solid #0969da;
    border-radius: 10px;
    color: #0969da;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

    .upgrade-button:hover {
        color: #fff;
        background: #0969da;
    }

.upgrade-popular {
    border: 2px solid #0969da;
    box-shadow: 0 12px 30px rgba(9, 105, 218, 0.1);
}

.upgrade-popular-label {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
    background: #0969da;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
}

.upgrade-note {
    margin: 25px 0 0;
    color: #64748b;
    text-align: center;
    font-size: 13px;
}

/* Tablet */
@media (max-width: 900px) {
    .upgrade-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .upgrade-popular {
        margin-top: 8px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .upgrade-section {
        padding: 40px 0;
    }

    .upgrade-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .upgrade-card {
        padding: 24px 20px;
    }

    .upgrade-description {
        min-height: 0;
    }

    .upgrade-price {
        font-size: 33px;
    }
}

/* ==========================================
   UPGRADE PLANS - COMPACT CARD DESIGN
========================================== */

.upgrade-section {
    padding: 25px 0;
    margin-top: 15px;
}

.upgrade-heading {
    margin-bottom: 18px;
}

.upgrade-grid {
    max-width: 1000px;
    margin: 0 auto;
    gap: 16px;
}

.upgrade-card {
    padding: 16px;
    border-radius: 14px;
}

.upgrade-card-top {
    margin-bottom: 14px;
}

.upgrade-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.upgrade-duration {
    padding: 5px 9px;
    font-size: 11px;
}

.upgrade-card h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.upgrade-description {
    min-height: 35px;
    margin-bottom: 12px;
    font-size: 13px;
}

.upgrade-price {
    font-size: 30px;
}

    .upgrade-price span {
        font-size: 15px;
    }

.upgrade-period {
    margin: 3px 0 15px;
    font-size: 12px;
}

.upgrade-features {
    gap: 9px;
    margin-bottom: 18px;
    padding-top: 14px;
}

    .upgrade-features li {
        font-size: 12px;
    }

.upgrade-button {
    padding: 10px 12px;
    font-size: 12px;
}

.upgrade-note {
    margin-top: 16px;
    font-size: 12px;
}

/* Tablet screens */
@media (max-width: 900px) {
    .upgrade-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile screens */
@media (max-width: 600px) {
    .upgrade-section {
        padding: 20px 0;
    }

    .upgrade-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .upgrade-card {
        padding: 16px;
    }

    .upgrade-description {
        min-height: 0;
    }

    .upgrade-price {
        font-size: 28px;
    }
}

/* =====================================================
   19. ADVERTISEMENT SPACE — FIVE CARDS
   Desktop: 5 cards in one row
===================================================== */

.ad-space-section {
    width: 100%;
    margin: 18px 0 22px;
    padding: 18px 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.ad-space-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.ad-space-card {
    min-width: 0;
    min-height: 155px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 13px;
    border: 1px dashed #b8cce5;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff, #f3f8ff);
    color: #0b2545;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ad-space-card:hover {
    transform: translateY(-3px);
    border-color: var(--blue);
    box-shadow: 0 8px 24px rgba(9, 105, 218, .10);
}

.ad-label {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ad-placeholder-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 9px 0;
    border-radius: 10px;
    background: #e5efff;
    font-size: 19px;
}

.ad-space-card h3 {
    margin: 0 0 5px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
}

.ad-space-card p {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

.ad-cta {
    margin-top: auto;
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
}

/* Tablet */
@media (max-width: 900px) {
    .ad-space-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    .ad-space-section {
        margin: 14px 0 18px;
        padding: 14px 0;
    }

    .ad-space-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ad-space-card {
        min-height: 150px;
        padding: 11px;
    }
}

/* ==========================================
   DIGANAHUB - ADVERTISEMENT SPACE STYLE
========================================== */

.ad-space-section {
    padding: 24px 0;
    margin: 0;
    background: #f8fbff;
    border-top: 1px solid #e3eaf2;
    border-bottom: 1px solid #e3eaf2;
}

.ad-space-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 1500px);
    margin: 0 auto;
}

.ad-space-card {
    min-width: 0;
    min-height: 155px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #dce7f5;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(16, 45, 82, 0.04);
    color: #10233f;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .ad-space-card:hover {
        transform: translateY(-4px);
        border-color: #0866d9;
        box-shadow: 0 10px 25px rgba(8, 102, 217, 0.10);
    }

.ad-label {
    color: #64758b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ad-placeholder-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin: 10px 0;
    border-radius: 11px;
    background: #eaf3ff;
    font-size: 20px;
}

.ad-space-card h3 {
    margin: 0 0 6px;
    color: #10233f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.ad-space-card p {
    margin: 0 0 12px;
    color: #65758b;
    font-size: 11px;
    line-height: 1.6;
}

.ad-cta {
    margin-top: auto;
    color: #0866d9;
    font-size: 11px;
    font-weight: 800;
}

.ad-space-card:hover .ad-cta {
    color: #064da4;
}

/* Tablet */
@media (max-width: 1000px) {
    .ad-space-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    .ad-space-section {
        padding: 16px 0;
    }

    .ad-space-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ad-space-card {
        min-height: 150px;
        padding: 12px;
        border-radius: 12px;
    }

        .ad-space-card h3 {
            font-size: 12px;
        }

        .ad-space-card p {
            font-size: 10px;
        }
}

/* Upgrade Your Business - Compact Pricing Cards */

.pricing-grid {
    max-width: 500px;
    margin: 0 auto;
    gap: 14px;
}

.pricing-card {
    padding: 16px;
    border-radius: 14px;
}

    .pricing-card h3 {
        font-size: 19px;
        margin: 12px 0 6px;
    }

    .pricing-card p {
        font-size: 13px;
        line-height: 1.5;
    }

    .pricing-card .price {
        font-size: 28px;
    }

    .pricing-card ul {
        margin: 12px 0;
        padding-left: 0;
    }

    .pricing-card li {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .pricing-card button {
        padding: 9px 12px;
        font-size: 12px;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .pricing-grid {
        max-width: 100%;
        gap: 12px;
    }

    .pricing-card {
        padding: 14px;
    }
}

/* ==========================================
   UPGRADE PLANS - SMALLER CARDS
========================================== */

.upgrade-grid {
    max-width: 800px;
    gap: 12px;
}

.upgrade-card {
    padding: 12px;
    border-radius: 12px;
}

.upgrade-card-top {
    margin-bottom: 10px;
}

.upgrade-icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
    border-radius: 10px;
}

.upgrade-duration {
    padding: 4px 7px;
    font-size: 10px;
}

.upgrade-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.upgrade-description {
    min-height: 30px;
    margin-bottom: 10px;
    font-size: 12px;
}

.upgrade-price {
    font-size: 27px;
}

    .upgrade-price span {
        font-size: 14px;
    }

.upgrade-period {
    margin: 3px 0 12px;
    font-size: 11px;
}

.upgrade-features {
    gap: 7px;
    margin-bottom: 14px;
    padding-top: 11px;
}

    .upgrade-features li {
        font-size: 11px;
    }

.upgrade-button {
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 8px;
}

.upgrade-note {
    margin-top: 12px;
    font-size: 11px;
}

/* Mobile */
@media (max-width: 600px) {
    .upgrade-grid {
        max-width: 420px;
        gap: 12px;
    }

    .upgrade-card {
        padding: 14px;
    }

    .upgrade-description {
        min-height: 0;
    }
}

/* ==========================================
   DIGANABUSINESS - ICON ONLY CATEGORY CARDS
========================================== */

.category-card img,
.category-card .category-image,
.category-card .category-image-wrapper {
    display: none !important;
}

.category-card {
    min-width: 0;
    min-height: 115px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e1eaf5;
    border-radius: 15px;
    box-shadow: 0 5px 16px rgba(20, 50, 90, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .category-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 9px 22px rgba(20, 50, 90, 0.09);
    }

    /* Category icon */
    .category-card .category-icon,
    .category-card .icon {
        flex-shrink: 0;
        display: grid;
        place-items: center;
        width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 26px;
    }

    /* Category name */
    .category-card h3,
    .category-card .category-name {
        margin: 0;
        text-align: center;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.4;
        color: #0b2545;
    }

/* Five cards per row on desktop */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

/* Tablet */
@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-card {
        min-height: 105px;
        padding: 14px 8px;
        gap: 10px;
    }

        .category-card .category-icon,
        .category-card .icon {
            width: 44px;
            height: 44px;
            font-size: 23px;
        }

        .category-card h3,
        .category-card .category-name {
            font-size: 12px;
        }
}

/* ==========================================
   CATEGORY CARDS - FIX ICONS & HEIGHT
========================================== */

/* Reduce card height */
.category-card {
    min-height: 100px !important;
    padding: 14px 10px !important;
    gap: 10px !important;
}

    /* Hide only category images */
    .category-card img,
    .category-card .category-image,
    .category-card .category-image-wrapper {
        display: none !important;
    }

    /* Show category icons */
    .category-card .category-icon,
    .category-card .icon {
        display: grid !important;
        place-items: center;
        width: 44px;
        height: 44px;
        font-size: 23px;
        flex-shrink: 0;
    }

    /* Category labels */
    .category-card h3,
    .category-card .category-name {
        margin: 0;
        text-align: center;
        font-size: 13px;
        line-height: 1.4;
    }

/* Desktop grid */
.categories-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-card {
        min-height: 95px !important;
    }
}

/* ==========================================
   DIGANABUSINESS - HORIZONTAL CATEGORY CARDS
========================================== */

.category-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    min-height: 76px !important;
    padding: 12px 16px !important;
    background: #ffffff;
    border: 1px solid #dce6f2;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(15, 45, 80, 0.05);
    text-align: left !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    /* Hide images only */
    .category-card img,
    .category-card .category-image,
    .category-card .category-image-wrapper {
        display: none !important;
    }

    /* Icon on the left */
    .category-card .category-icon,
    .category-card .icon {
        display: grid !important;
        place-items: center;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 12px;
        font-size: 23px;
        flex-shrink: 0;
    }

    /* Category name on the right */
    .category-card h3,
    .category-card .category-name {
        flex: 1;
        margin: 0 !important;
        color: #0b2545;
        font-size: 14px !important;
        font-weight: 700;
        line-height: 1.4;
        text-align: left !important;
    }

    /* Hover effect */
    .category-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 18px rgba(15, 45, 80, 0.09);
    }

/* Responsive layout */
@media (max-width: 600px) {
    .category-card {
        min-height: 65px !important;
        padding: 10px !important;
        gap: 10px !important;
    }

        .category-card .category-icon,
        .category-card .icon {
            width: 38px !important;
            height: 38px !important;
            min-width: 38px !important;
            font-size: 20px;
        }

        .category-card h3,
        .category-card .category-name {
            font-size: 12px !important;
        }
}

/* ==========================================
   CATEGORY ICON - FINAL FIX
========================================== */

.category-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
}

    .category-card .category-icon {
        display: grid !important;
        place-items: center !important;
        position: static !important;
        flex: 0 0 42px !important;
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        border-radius: 12px !important;
        font-size: 22px !important;
        line-height: 1 !important;
    }

    .category-card .category-name {
        flex: 1 !important;
        min-width: 0;
        text-align: left !important;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.4;
    }

    .category-card .arrow-circle {
        position: static !important;
        flex: 0 0 26px;
        width: 26px;
        height: 26px;
        display: grid;
        place-items: center;
        border: 1px solid #dce6f2;
        border-radius: 50%;
        font-size: 18px;
    }

    .category-card .category-photo {
        display: none !important;
    }

    .category-card img {
        display: none !important;
    }

@media (max-width: 600px) {
    .category-card {
        gap: 8px !important;
        padding: 10px !important;
    }

        .category-card .category-icon {
            flex-basis: 36px !important;
            width: 36px !important;
            height: 36px !important;
            font-size: 19px !important;
        }

        .category-card .category-name {
            font-size: 12px;
        }
}
