:root {
    --primary: #6366f1; /* indigo */
    --primary-2: #8b5cf6; /* violet */
    --dark: #4f46e5;
    --accent: #ec4899; /* pink */
    --bg: #f6f7fb; /* light page */
    --surface: #ffffff; /* cards */
    --surface-2: #f3f4fb; /* subtle tint */
    --green: #10b981;
    --text: #1e2233;
    --muted: #6b7280;
    --border: #ececf3;
    --gold-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); /* brand gradient */
    --radius: 16px;
    --shadow: 0 8px 30px rgba(17, 24, 39, 0.07);
    --glow: 0 0 0 1px rgba(99, 102, 241, 0.15), 0 14px 34px rgba(99, 102, 241, 0.16);
}

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

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

::selection {
    background: rgba(99, 102, 241, 0.18);
    color: var(--dark);
}


.main_nav {
    background: linear-gradient(120deg, var(--dark) 0%, var(--primary) 60%, var(--primary-2) 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.25);
    top: 0;
    z-index: 100;
    position: sticky;
}

nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 0 var(--border), 0 6px 24px rgba(17, 24, 39, 0.04);
    top: 0;
    z-index: 100;
    /*position: sticky;*/
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}


.logo-part-navy {
    color: #16305c;
}

.logo-part-gold {
    color: #feb523;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
}


.nav-links {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex: 1;
    margin: 0 1rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-links a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.nav-admin {
    background: #fff;
    color: var(--dark) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.15);
}

.nav-burger {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-burger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
    opacity: 0;
}

.nav-burger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile-panel {
    display: none;
    position: sticky;
    top: 0;
    z-index: 99;
    background: var(--dark);
    padding: 0.5rem;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-mobile-panel.open {
    display: flex;
}

.nav-mobile-panel a {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    text-decoration: none;
}

.nav-mobile-panel a:hover,
.nav-mobile-panel a.is-active {
    background: rgba(255, 255, 255, 0.14);
}

@media (prefers-reduced-motion: reduce) {
    .nav-burger span {
        transition: none;
    }
}

.hero {
    position: relative;
    background: radial-gradient(1100px 420px at 50% -140px, rgba(236, 72, 153, 0.35), transparent 65%),
    linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
    padding: 1.2rem 1rem 1rem;
    text-align: center;

    color: #fff;
}
.country-hero{
    position: relative;
    overflow: hidden;

    background: url("/static/images/Noon_Website_Logo.svg") center/cover no-repeat;

    padding: 5rem 1rem;
    border-radius: 20px;
}

.country-hero::before{
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,.3); /* غمق الصورة */
}

.country-hero > *{
    position: relative;
    z-index: 2;
}

.country-hero h1,
.country-hero p{
    color: #fff;
}

.country-hero h1{
    font-size: 2.8rem;
    font-weight: 800;
}

.country-hero p{
    font-size: 1.15rem;
    opacity: .95;
}
.hero-container {
    display: flex;
    margin-bottom: 12px;
    gap: 5.2rem;
    /*align-content: center;*/
}

.hero img {
    border-radius: 12px;
}


.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 2rem;
}

.hero-sm {
    padding: 2.5rem 1rem 3.5rem;
}

.search-wrap {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.18);
}

.search-wrap input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: var(--text);
    font-family: inherit;
}

.search-wrap input::placeholder {
    color: #9aa0ac;
}

.search-wrap button {
    padding: 1rem 1.8rem;
    background: var(--gold-grad);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
}

.wave {
    margin-top: -2px;
    line-height: 0;
}

.wave svg {
    display: block;
}

.scroll-row-wrap {
    position: relative;
}

.scroll-row-wrap .scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.scroll-row-wrap .scroll-arrow:hover {
    background: var(--gold-grad);
    color: #fff;
    border-color: transparent;
}

.scroll-row-wrap .scroll-arrow-left { left: -4px; }
.scroll-row-wrap .scroll-arrow-right { right: -4px; }

.scroll-row-wrap .scroll-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    .scroll-row-wrap .scroll-arrow {
        display: none;
    }
}



.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.breadcrumb {
    padding: 15px;
    font-size: 1.6rem;
    border-radius: 12px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb a:hover {
    text-decoration: none;
}

.breadcrumb li:last-child span {
    color: var(--text);
    font-weight: 600;
}

.breadcrumb .sep {
    color: #cbd0da;
    font-size: 4rem;
    margin: 0 2px;
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.75rem 0;

    }


    .breadcrumb ol {
        gap: 0.2rem;
    }
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.section-more:hover {
    text-decoration: underline;
}

.latest-stores-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem 0.2rem 1.4rem;
    scroll-snap-type: x proximity;
}

.latest-stores-scroll::-webkit-scrollbar {
    display: none;
}

.latest-stores-scroll .store-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

@media (max-width: 560px) {
    .latest-stores-scroll .store-card {
        flex-basis: 220px;
    }
}


    
   .offer-bar{

    display:flex;

    align-items:center;

    overflow:hidden;

    background:#111827;

    color:white;

    border-radius:10px;
}

.label{

    background:#ff5722;

    padding:12px 20px;

    font-weight:bold;
}

.offer-track{

    white-space:nowrap;

    animation:move 18s linear infinite;
}

.offer-track span{

    display:inline-block;

    margin:0 40px;
}

@keyframes move{

    from{

        transform:translateX(100%);
    }

    to{

        transform:translateX(-100%);
    }

}
  


.cats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1.5rem 0;
}

.cats::-webkit-scrollbar {
    display: none;
}

.cat {
    flex: 0 0 auto;
    padding: 0.55rem 1.3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.cat:hover, .cat.active {
    background: var(--gold-grad);
    color: #fff;
    border-color: transparent;
}

.stats {
    display: flex;
    gap: 1.5rem;
    margin: .1rem auto 1rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
}

.stat:hover {
    color: #9da8d5;
    background-color: ghostwhite;
}

.stat .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.num:hover {
    /*font-size: 1.8rem;*/
    /*font-weight: 800;*/
    /*color: royalblue;*/
}


.stat .lbl {
    font-size: 0.8rem;
    color: var(--muted);
}


.store-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.store-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: var(--glow);
}

.store-card-media {
    position: relative;
    display: block;
    height: 170px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.14));
}

.store-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-media-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.55) 0%, transparent 55%);
    pointer-events: none;
}

.store-logo-badge {
    position: absolute;
    bottom: -20px;
    right: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--surface);
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
}

.store-count-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    z-index: 2;
}

.store-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

@media (min-width: 560px) {
    .store-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.store-card-compact {
    border-radius: 14px;
}

.store-card-compact .store-card-media {
    height: 130px;
}

.store-card-compact .store-logo-badge {
    bottom: 8px;
    left: 8px;
    right: auto;
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.store-name-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 1.4rem 0.7rem 0.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .store-card-compact .store-card-media {
        height: 100px;
    }

    .store-name-overlay {
        font-size: 0.72rem;
        padding: 1rem 0.4rem 0.4rem;
    }
}

.store-body {
    padding: 30px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.store-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.store-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.store-code-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0;
}

.store-code-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 0.4rem 0.7rem;
    text-decoration: none;
    font-size: 0.82rem;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
}

.store-code-chip:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.store-code-chip .code {
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.store-code-chip .title {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-cta {
    margin-top: auto;
    align-self: flex-start;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    padding-top: 4px;
}

.store-cta:hover {
    text-decoration: underline;
}

.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.edit-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
}

.sc-header {
    background: var(--gold-grad);
    padding: 1.5rem;
    text-align: center;
    color: #fff;
}

.sc-logo {
    font-size: 2.5rem;
    margin-bottom: 0.4rem;
}

.sc-name {
    font-weight: 700;
    font-size: 2rem;
}

.sc-body {
    padding: 1rem 1.2rem;
}

.sc-desc {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.sc-count {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch; /* يخلي كل الكروت في نفس الصف بنفس الارتفاع */
    margin-top: 12px;
    padding-bottom: 3rem;
}

.store-sim {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 20px 0;
}

.store-sim a {
    display: block;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    transition: .2s;
}

.store-sim a:hover {
    background: #f8fafc;
    color: var(--primary);
}


.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: var(--glow);
}

.card-header {
    background: dodgerblue;
    padding: 1rem 1.5rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 30px;
}

.card-header .sn {
    font-weight: 700;
    color: #fff;
}


.card-body {
    padding: 1.2rem 1.5rem;
}

.card-desc {
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 1rem;
}

.card-expiry {
    font-size: 1.6rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.card-expiry span {
    color: var(--accent);
}

.code-section {
    display: flex;
    gap: 0.6rem;
}

.code-box {
    flex: 1;
    background: rgba(99, 102, 241, 0.07);
    border: 2px dashed var(--primary);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    letter-spacing: 2px;
}

.copy-btn {
    padding: 0.7rem 1.2rem;
    background: var(--gold-grad);
    color: #fff;
    /*font: unset;*/
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    font-family: inherit;
    transition: filter 0.2s;
}

.copy-btn:hover {
    filter: brightness(1.06);
}

.copy-btn.copied {
    background: var(--green);
}

.card-footer {
    padding: 0.8rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--muted);
}

.verified {
    color: var(--green);
    font-weight: bold;
}

.country-grid {
    display: flex;
    gap: .4rem;

    overflow-x: auto;
    overflow-y: hidden;

    flex-wrap: nowrap;

    margin-bottom: 2rem;

    scroll-behavior: smooth;

    /* Firefox */
    scrollbar-width: none;

    /* IE */
    -ms-overflow-style: none;
}

.country-grid::-webkit-scrollbar {
    display: none;
}

.country-card {
    flex: 0 0 180px; /* عرض ثابت لكل بطاقة */
}


.country-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.1rem;
    box-shadow: var(--shadow);
    text-align: center;
    display: block;
    color: var(--text);
    transition: transform 0.2s, border-color 0.2s;
}

.country-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
}

.country-flag {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.country-name {
    font-weight: 700;
    color: var(--primary);
}


.seo-article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    line-height: 1.9;
}

.seo-article h2 {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--surface-2);
}

.seo-article h2:first-child {
    margin-top: 0;
}

.seo-article h3 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.seo-article p {
    color: #555;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.seo-article ol, .seo-article ul {
    padding-right: 1.5rem;
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.95rem;
}

.seo-article li {
    margin-bottom: 0.4rem;
}

.seo-article strong {
    color: var(--primary);
}

.faq-item {
    background: var(--surface-2);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    border-right: 3px solid var(--primary);
}

.blog-grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding-bottom: 3rem;
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: block;
    color: var(--text);
    transition: transform 0.2s, border-color 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
}

.blog-body {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.blog-desc {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.8rem;
}

.admin-wrap {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.admin-wrap-lg {
    max-width: 950px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.admin-card h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    transition: border 0.2s, box-shadow 0.2s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 1rem;
}

.btn {
    padding: 0.9rem 2rem;
    background: var(--gold-grad);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    font-family: inherit;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
    transition: filter 0.2s, transform 0.2s;
}

.btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 8px;
    color: var(--primary);
    box-shadow: none;
}

.btn-ghost {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--gold-grad);
    color: #fff;
    filter: none;
}

.btn-danger {
    background: #fff0f4;
    color: #c0002a;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
}

.btn-danger:hover {
    background: #c0002a;
    color: white;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    background: var(--surface-2);
    color: var(--primary);
    padding: 0.8rem 1rem;
    text-align: right;
    white-space: nowrap;
}

.admin-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: #fafbff;
}

.alert {
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-ok {
    background: #e7fbf3;
    color: #058a63;
}

.alert-err {
    background: #fff0f4;
    color: #c0002a;
}

.dashboard-grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.dash-link {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    display: block;
    font-weight: bold;
    transition: all 0.2s;
}

.dash-link:hover {
    background: var(--gold-grad);
    color: #fff;
}

.empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
}

.empty .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.stat-link {
    /*display: flex;*/
    display: block;
    width: 100%;
    height: 100%;
    /*flex: 1;*/
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.stat-link .stat {
    transition: .2s;
    width: 100%;
}

.stat-link:hover .stat {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    background-color: white;
    color: cyan;
}

.stat-link:visited {
    color: inherit;
}


.cat-section-title {
    margin: 1.8rem 0 1rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.cat-stores-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.cat-store-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border, #eee);
    padding: 0.55rem 1.1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text, #333);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
    transition: all 0.2s ease;
}

.cat-store-chip:hover {
    background: var(--primary, #6366f1);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

.chip-logo {
    font-size: 1.15rem;
}


.badge {
    display: inline-flex;
    align-items: center;
    /*justify-content: center;*/
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;

    transition: all 0.2s ease;
}

.badge-verified {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

footer {
    background: #fff;
    text-align: center;
    padding: 1.5rem;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

@media (max-width: 600px) {

    .hero h1 {
        font-size: 1.4rem;
    }

    .stats {
        gap: 0.75rem;
        margin: .4rem auto 2rem;
    }

    .coupon-grid {
        grid-template-columns: 1fr;

    }

    .form-row {
        grid-template-columns:1fr;
    }

    nav {
        padding: 1rem;
    }
     .main_nav {
        padding: 0.85rem 1.2rem;
    }
    .store-logo-badge{
        display: none !important;
    }
    
    .nav-links {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .nav-admin {
        padding: 0.4rem 0.8rem !important;
    }


    .hero img {
        border-radius: 12px;
        height: 100px;
    }
    
    
}