:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #28a745;
    --secondary-dark: #218838;
    --text-dark: #333;
    --text-gray: #666;
    --text-light-gray: #999;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --white: #fff;
    --border-color: #ddd;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --coupon-bg-color: #fff;
    --coupon-border-color: #e0e0e0;
    --card-border-radius: 8px;
    --coupon-footer-bg: #e6fcf5;
    --coupon-footer-text: #008f68;
    --btn-code-bg: #f3f6fd;
    --btn-code-border: #4db2ec;
    --modal-bg-overlay: rgba(0, 0, 0, 0.6);
    --modal-content-bg: #fff;
    --modal-code-bg: #f2f2f2;
    --modal-copy-btn-bg: #007bff;
}

html {
    overflow-y: scroll;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-section,
.featured-brands-section,
.coupon-list-section,
.how-it-works-section,
.all-brands-section,
.brand-page-section,
.all-deals-section,
.text-page-section {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo a {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-dark);
}

.logo span {
    color: var(--primary-color);
}

.nav {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 25px;
}

.nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

.nav ul li a:hover {
    color: var(--primary-color);
}

.nav ul li a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav ul li a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    bottom: -5px;
    left: 0;
}

.search-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background: var(--white);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.header .search-container {
    border-radius: 25px;
    max-width: 350px;
}

.search-input {
    flex-grow: 1;
    height: 100%;
    border: none;
    padding: 0 15px;
    outline: none;
    font-size: 0.95em;
    background: transparent;
    color: var(--text-dark);
}

.search-button {
    width: 50px;
    height: 100%;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    font-size: 1em;
}

.search-button:hover {
    background: var(--primary-dark);
}

.search-button i {
    line-height: 1;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

.btn-secondary {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s ease;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    color: var(--white) !important;
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/index-background.webp') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.featured-brands-section {
    padding: 40px 0;
    text-align: center;
    background-color: var(--white);
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: var(--box-shadow);
}

.featured-brands-section h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.brand-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.brand-card img {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
}

.brand-card h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.brand-card p {
    font-size: 0.9em;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.coupon-list-section {
    padding: 40px 0;
    margin-bottom: 40px;
}

.coupon-list-section h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
}

.coupon-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.coupon-card {
    background: var(--coupon-bg-color);
    border: 1px solid var(--coupon-border-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.coupon-card:has(.btn-reveal-code.revealed:hover) {
    z-index: 10;
}

.coupon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.coupon-main-row {
    display: flex;
    align-items: center;
    padding: 25px;
    min-height: 140px;
    background-color: var(--white);
}

.coupon-left {
    width: 150px;
    text-align: center;
    border-right: 2px dashed #e0e0e0;
    padding-right: 25px;
    margin-right: 25px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-dark);
}

.offer-value {
    font-size: 2.8em;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.offer-label {
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 8px;
    color: var(--text-gray);
}

.coupon-middle {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    align-items: flex-start;
}

.brand-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    height: 40px;
}

.brand-icon-small {
    height: 100%;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    object-position: left center;
}

.coupon-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0;
    text-align: left;
}

.coupon-meta {
    font-size: 0.9em;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 15px;
}

.verified-badge {
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.see-details {
    font-size: 0.95em;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    width: fit-content;
    margin-top: 5px;
    text-decoration: none;
}

.see-details:hover {
    text-decoration: underline;
}

.coupon-right {
    flex-shrink: 0;
    padding-left: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 220px;
    position: relative;
}

.coupon-footer {
    background-color: var(--coupon-footer-bg);
    color: var(--coupon-footer-text);
    padding: 12px 25px;
    font-size: 0.9em;
    font-weight: 500;
    border-top: 1px solid #dafbe8;
    display: flex;
    align-items: center;
}

.view-all-deals {
    margin-top: 40px;
    text-align: center;
}

.mobile-arrow {
    display: none;
    font-size: 1.4em;
    color: var(--primary-color);
}

.btn-reveal-code {
    height: 50px;
    width: 100%;
    min-width: 190px;
    border: none;
    border-radius: 4px;
    background-color: var(--btn-code-bg);
    text-align: right;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    display: block;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    overflow: hidden;
}

.btn-code-part {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #333;
    padding-right: 15px;
    border: 1px dashed var(--btn-code-border);
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
}

.btn-text {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 35px;
    padding-left: 35px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: .2s ease-out;
    z-index: 2;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-text::after {
    content: "";
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-right: 14px solid var(--primary-dark);
    border-bottom: 36px solid transparent;
    right: 0;
    top: 0;
    z-index: 1;
    transform: rotate(335deg);
    transform-origin: top right;
    transition: all 0.25s;
}

.btn-text::before {
    content: "";
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 25px solid var(--primary-color);
    border-left: 12px solid var(--primary-color);
    left: 100%;
    top: 0;
    transition: .2s ease-out;
}

.btn-reveal-code:not(.revealed):hover .btn-text {
    right: 45px;
    background-color: var(--primary-dark);
}

.btn-reveal-code:not(.revealed):hover .btn-text::before {
    border-bottom-color: var(--primary-dark);
    border-left-color: var(--primary-dark);
}

.btn-reveal-code:not(.revealed):hover .btn-text::after {
    border-right-color: #003d80;
    border-width: 18px 22px 36px 0 !important;
}

.btn-reveal-code.revealed {
    background-color: #e6f2ff;
    border: 2px dashed var(--primary-color);
    box-shadow: none;
    overflow: visible;
}

.btn-reveal-code.revealed .btn-text {
    display: none;
}

.btn-reveal-code.revealed .btn-code-part {
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 1.3em;
    justify-content: center;
    padding-right: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.btn-reveal-code.revealed:hover {
    border-style: solid;
    background-color: #dbeaff;
}

.btn-reveal-code.revealed::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-reveal-code.revealed::before {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--primary-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

.btn-reveal-code.revealed:hover::after,
.btn-reveal-code.revealed:hover::before {
    opacity: 1;
    visibility: visible;
}

.btn-get-deal {
    background: var(--primary-color);
    color: var(--white);
    padding: 0 20px;
    height: 50px;
    width: 100%;
    min-width: 190px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-get-deal:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
    text-decoration: none;
}

.breadcrumb-section {
    background-color: var(--bg-light);
    padding: 20px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    color: var(--text-gray);
}

.breadcrumb i {
    font-size: 0.8em;
    color: #aaa;
}

.brand-page-section {
    padding-bottom: 60px;
    padding-top: 20px;
}

.page-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 20px;
}

.brand-info-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.brand-logo-large img {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.rating-box {
    margin-bottom: 15px;
    color: #f39c12;
    font-size: 0.95em;
    font-weight: 600;
}

.brand-description {
    font-size: 0.95em;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.stat-box {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.stat-box h3 {
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.stat-box ul li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.95em;
}

.stat-box ul li:last-child {
    border-bottom: none;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filter-bar h2 {
    margin-bottom: 0;
}

.brand-article-card {
    background: var(--white);
    border: 1px solid var(--coupon-border-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    padding: 35px;
    margin-top: 40px;
    color: var(--text-dark);
}

.brand-article-card h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.brand-article-card h3 {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.brand-article-card p {
    margin-bottom: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

.brand-article-card ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.brand-article-card ul li {
    margin-bottom: 8px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: block;
}

.faq-answer {
    color: var(--text-gray);
    font-size: 0.95em;
}

.how-it-works-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    border-radius: 8px;
    margin: 40px auto;
    box-shadow: var(--box-shadow);
}

.how-it-works-section h2 {
    color: var(--white);
    font-size: 2.5em;
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.step-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.step-card h3 {
    color: var(--white);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.step-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
}

.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 50px 0;
    font-size: 0.95em;
    margin-top: auto;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    text-align: center;
}

.footer-col h4 {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--white);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bbb;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 0;
    text-decoration: underline;
}

.footer-disclosure {
    margin: 30px 0 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 0.8rem;
    line-height: 1.6;
    width: 100%;
    text-align: center;
}

.footer-disclosure p {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: block;
}

.copyright {
    margin-top: 0;
    padding-top: 10px;
    color: #888;
    width: 100%;
    text-align: center;
}

.copyright p {
    margin: 0;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--modal-bg-overlay);
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: var(--modal-content-bg);
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    text-align: center;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover {
    color: var(--text-dark);
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.modal-body {
    text-align: left;
}

.modal-body p {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-gray);
}

.coupon-code-display {
    display: flex;
    background-color: var(--modal-code-bg);
    border: 1px dashed #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
    align-items: stretch;
}

.actual-coupon-code {
    flex-grow: 1;
    padding: 15px;
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-all;
}

.modal-copy-btn {
    background-color: var(--modal-copy-btn-bg);
    color: var(--white);
    padding: 0 30px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.modal-copy-btn:hover {
    background-color: var(--primary-dark);
}

.modal-redeem-btn {
    display: block;
    width: 100%;
    background-color: var(--modal-copy-btn-bg);
    color: var(--white);
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 20px;
    transition: background-color 0.2s;
}

.modal-redeem-btn:hover {
    background-color: var(--primary-dark);
    color: var(--white) !important;
    text-decoration: none;
}

.feedback-section {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.feedback-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: var(--text-gray);
    transition: all 0.2s;
}

.feedback-btn:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
}

.all-brands-section {
    padding: 40px 0 80px;
    background-color: var(--bg-light);
}

.brands-header {
    text-align: center;
    margin-bottom: 40px;
}

.brands-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.brands-header p {
    color: var(--text-gray);
    font-size: 1.1em;
}

.brand-search-box {
    max-width: 500px;
    margin: 25px auto;
    position: relative;
}

.brand-search-box input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: border-color 0.3s;
}

.brand-search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.brand-search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.az-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.az-char {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 4px;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
    border: 1px solid transparent;
}

.az-char:hover, .az-char.active {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.az-char.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.filter-box {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.filter-box h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar .search-container {
    height: 45px;
    display: flex;
    align-items: stretch;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95em;
    color: var(--text-gray);
    transition: color 0.2s;
}

.checkbox-item:hover {
    color: var(--primary-color);
}

.checkbox-item input {
    margin-right: 10px;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.deals-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.deals-count {
    font-weight: 600;
    color: var(--text-gray);
}

.sort-dropdown {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    margin-bottom: 80px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.text-page-section {
    padding-bottom: 80px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-nav-box {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.page-nav-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
}

.page-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-nav-list li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: var(--text-gray);
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-nav-list li:last-child a {
    border-bottom: none;
}

.page-nav-list li a:hover {
    background-color: #fdfdfd;
    color: var(--primary-color);
    padding-left: 25px;
}

.page-nav-list li a.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-nav-list li a.active:hover {
    padding-left: 20px;
}

.text-page-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.text-page-content h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.last-updated {
    display: block;
    font-size: 0.9em;
    color: #999;
    margin-bottom: 30px;
    font-style: italic;
}

.text-page-content h2 {
    font-size: 1.5em;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.text-page-content h3 {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
}

.text-page-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-gray);
}

.text-page-content ul, 
.text-page-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
    color: var(--text-gray);
}

.text-page-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.error-page-section {
    padding: 60px 20px;
    background-color: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.error-card {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 550px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-icon-box {
    width: 100px;
    height: 100px;
    background-color: #e6f2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.error-icon {
    font-size: 40px;
    color: var(--primary-color);
}

.error-title {
    font-size: 4em;
    font-weight: 800;
    line-height: 1;
    color: var(--text-dark);
    margin: 0;
    margin-bottom: 10px;
}

.error-subtitle {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.error-text {
    font-size: 1em;
    color: var(--text-gray);
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 400px;
}

.error-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.error-buttons .btn-primary,
.error-buttons .btn-secondary {
    min-width: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
    font-size: 0.9em;
    line-height: 1.5;
    color: #ecf0f1;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.cookie-btn:hover {
    background-color: var(--secondary-dark);
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 15px 50px;
    }
    .cookie-content p {
        margin-bottom: 0;
        margin-right: 20px;
    }
}

@media (max-width: 992px) {
    .page-layout {
        display: flex;
        flex-direction: column;
    }
    .main-content {
        order: 1;
        width: 100%;
    }
    .sidebar {
        order: 2;
        width: 100%;
        position: static;
        margin-top: 30px;
    }
    .brand-info-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .header .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding-bottom: 5px;
    }

    .logo { 
        order: 1; 
        width: 100%; 
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
    }
    
    .logo a {
        display: inline-block;
        text-align: center;
        width: auto;
        margin: 0 auto;
    }

    .search-container { 
        order: 2;
        width: 90% !important;
        max-width: 400px;
        margin: 0 auto;
    }

    .nav { 
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
        overflow-x: hidden;
    }

    .nav ul { 
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;
        width: 100%;
        gap: 5px;
    }
    
    .nav ul li {
        margin: 0 10px;
    }
    
    .footer .container { flex-direction: column; gap: 30px; }

    .coupon-main-row {
        padding: 15px;
        min-height: auto;
    }
    .coupon-left {
        width: 90px;
        padding-right: 15px;
        margin-right: 15px;
        border-width: 1px;
    }
    .offer-value { font-size: 2em; }
    .offer-label { font-size: 0.9em; }
    .coupon-middle { gap: 4px; }
    .brand-badge-row { height: 30px; }
    .brand-icon-small { max-width: 100px; }
    .coupon-title { font-size: 1.1em; }
    
    .btn-reveal-code, .btn-get-deal { display: none; }
    
    .coupon-right { padding-left: 10px; min-width: auto; }
    .mobile-arrow { display: block; }
    
    .coupon-card { cursor: pointer; }
    .coupon-card:hover { transform: none; }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col h4 {
        border-bottom: none;
        position: relative;
    }
    
    .footer-col h4::after {
        content: '';
        display: block;
        width: 40px;
        height: 2px;
        background: var(--primary-color);
        margin: 8px auto 0;
    }

    .footer-col ul li a:hover {
        padding-left: 0;
        color: var(--white);
    }
    
    .text-page-content {
        padding: 25px;
    }
    
    .error-title {
        font-size: 5em;
    }
    .error-subtitle {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .hero-section, .featured-brands-section, .coupon-list-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .coupon-code-display {
        flex-direction: column;
        border: none;
        background: transparent;
    }
    .actual-coupon-code {
        background: #f2f2f2;
        border: 1px dashed #ccc;
        border-radius: 5px;
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
        padding: 15px;
    }
    .modal-copy-btn {
        width: 100%;
        padding: 12px;
        border-radius: 5px;
    }
    
    .error-card {
        padding: 40px 20px;
    }
    .error-title {
        font-size: 3em;
    }
    .error-buttons {
        flex-direction: column;
    }
    .error-buttons .btn-primary,
    .error-buttons .btn-secondary {
        width: 100%;
    }
}

.all-deals-section {
    padding-bottom: 80px;
}

.pagination {
    margin-bottom: 0; 
}

.contact-intro { margin-bottom: 30px; color: var(--text-gray); }
.contact-form-group { margin-bottom: 20px; }
.contact-form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-dark); }
.contact-input {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 4px;
    font-family: 'Poppins', sans-serif; font-size: 0.95em; transition: border-color 0.3s, box-shadow 0.3s; outline: none;
}
.contact-input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0,123,255,0.1); }
.contact-input.input-error { border-color: #dc3545; background-color: #fff8f8; }
textarea.contact-input { resize: vertical; min-height: 150px; }
.btn-submit {
    background-color: var(--primary-color); color: #fff; border: none; padding: 12px 30px; font-size: 1em; font-weight: 600;
    border-radius: 4px; cursor: pointer; transition: background 0.3s; display: inline-flex; align-items: center; justify-content: center; min-width: 150px;
}
.btn-submit:hover { background-color: var(--primary-dark); }
.btn-submit:disabled { background-color: #ccc; cursor: not-allowed; }
        
.form-message { margin-top: 20px; padding: 15px; border-radius: 4px; display: none; }
.form-message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.cf-turnstile { margin-bottom: 20px; }

.success-container {
    text-align: center;
    padding: 40px 20px;
}
.success-icon {
    font-size: 4em;
    color: #28a745;
    margin-bottom: 20px;
}