/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background-light: #f9fafb;
    --background-dark: #111827;
    --white: #ffffff;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-ar: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* RTL Support */
[dir="rtl"] {
    --font-family: var(--font-family-ar);
}

[dir="ltr"] {
    --font-family: var(--font-family-en);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switch */
.language-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.lang-btn:hover:not(.active) {
    background: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Stats Container */
.stats-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

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

.stat-number {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2rem;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Hero Image */
.hero-image {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    animation: float 6s ease-in-out infinite;
    color: var(--text-primary);
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Category cards (first 3) */
.floating-card.category-card:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.category-card:nth-child(2) {
    top: 35%;
    right: 20%;
    animation-delay: 2s;
}

.floating-card.category-card:nth-child(3) {
    bottom: 25%;
    left: 25%;
    animation-delay: 4s;
}

/* Brand logo cards (next 7) */
.floating-card:nth-child(4) {
    top: 5%;
    right: 10%;
    animation-delay: 1s;
}

.floating-card:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 3s;
}

.floating-card:nth-child(6) {
    top: 70%;
    right: 15%;
    animation-delay: 5s;
}

.floating-card:nth-child(7) {
    top: 25%;
    left: 35%;
    animation-delay: 0.5s;
}

.floating-card:nth-child(8) {
    top: 60%;
    right: 5%;
    animation-delay: 2.5s;
}

.floating-card:nth-child(9) {
    top: 80%;
    left: 20%;
    animation-delay: 4.5s;
}

.floating-card:nth-child(10) {
    top: 40%;
    left: 50%;
    animation-delay: 1.5s;
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.floating-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 0.25rem;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid #e5e7eb;
    padding: 2px;
}

.card-text {
    font-weight: 600;
    font-size: 0.7rem;
    line-height: 1.2;
    margin-top: 0.25rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Brands Section */
.brands {
    padding: 80px 0;
    background: var(--background-light);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.brand-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.brand-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
    pointer-events: none;
}

.brand-card > * {
    position: relative;
    z-index: 2;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.brand-card:hover::after {
    background: rgba(255, 255, 255, 0.95);
}

/* Brand-specific styling */
.brand-card[data-brand="levelshoes"] {
    border-top: 4px solid #1e40af;
    background-image: url('./images/levelshoes_logo.png');
    background-size: 200px;
    background-position: top right;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
}

.brand-card[data-brand="levelshoes"] .brand-logo {
    background: #fff !important;
    border: 1px solid #1e40af;
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 4px;
}

.brand-card[data-brand="levelshoes"] .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.brand-card[data-brand="levelshoes"] .brand-link {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.brand-card[data-brand="levelshoes"] .coupon-item {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.brand-card[data-brand="eyewa"] {
    border-top: 4px solid #23b6b6;
}

.brand-card[data-brand="eyewa"] .brand-logo {
    background: #fff !important;
    border: 1px solid #23b6b6;
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 4px;
}

.brand-card[data-brand="eyewa"] .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.brand-card[data-brand="eyewa"] .brand-link {
    background: linear-gradient(135deg, #23b6b6 0%, #1dbab3 100%);
}

.brand-card[data-brand="eyewa"] .coupon-item {
    background: linear-gradient(135deg, #23b6b6 0%, #1dbab3 100%);
}

.brand-card[data-brand="eyewa"] .brand-logo-bg-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.brand-card[data-brand="eyewa"] .brand-logo-bg-img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: 100%;
    display: block;
    z-index: 1;
    position: relative;
}

.brand-card[data-brand="eyewa"] .brand-logo-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    z-index: 2;
    border-radius: 8px;
}

.brand-card[data-brand="namshi"] {
    border-top: 4px solid #000000;
    background-image: url('./images/namshi_logo.png');
    background-size: 150px;
    background-position: top right;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
}

.brand-card[data-brand="namshi"] .brand-logo {
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
}

.brand-card[data-brand="namshi"] .brand-link {
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
}

.brand-card[data-brand="namshi"] .coupon-item {
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
}

.brand-card[data-brand="mumzworld"] {
    border-top: 4px solid #ed217c;
}

.brand-card[data-brand="mumzworld"] .brand-logo {
    background: #fff !important;
    border: 1px solid #ed217c;
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 4px;
}

.brand-card[data-brand="mumzworld"] .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.brand-card[data-brand="mumzworld"] .brand-link {
    background: linear-gradient(135deg, #ed217c 0%, #f857a6 100%);
}

.brand-card[data-brand="mumzworld"] .coupon-item {
    background: linear-gradient(135deg, #ed217c 0%, #f857a6 100%);
}

.brand-card[data-brand="mumzworld"] .brand-logo-bg-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.brand-card[data-brand="mumzworld"] .brand-logo-bg-img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: 100%;
    display: block;
    z-index: 1;
    position: relative;
}

.brand-card[data-brand="mumzworld"] .brand-logo-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    z-index: 2;
    border-radius: 8px;
}

.brand-card[data-brand="bloomingdales"] {
    border-top: 4px solid #7c3aed ;
}


.brand-card[data-brand="bloomingdales"] .brand-logo {
    background: #fff !important;
    border: 1px solid #7c3aed;
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 4px;
}

.brand-card[data-brand="bloomingdales"] .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.brand-card[data-brand="bloomingdales"] .brand-link {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.brand-card[data-brand="bloomingdales"] .coupon-item {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.brand-card[data-brand="bloomingdales"] .brand-logo-bg-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.brand-card[data-brand="bloomingdales"] .brand-logo-bg-img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: 100%;
    display: block;
    z-index: 1;
    position: relative;
}

.brand-card[data-brand="bloomingdales"] .brand-logo-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    z-index: 2;
    border-radius: 8px;
}

.brand-card[data-brand="alhabibshop"] {
    border-top: 4px solid #a01f2b;
}

.brand-card[data-brand="alhabibshop"] .brand-logo {
    background: #fff !important;
    border: 1px solid #a01f2b;
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 4px;
}

.brand-card[data-brand="alhabibshop"] .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.brand-card[data-brand="alhabibshop"] .brand-link {
    background: linear-gradient(135deg, #a01f2b 0%, #c0392b 100%);
}

.brand-card[data-brand="alhabibshop"] .coupon-item {
    background: linear-gradient(135deg, #a01f2b 0%, #c0392b 100%);
}

.brand-card[data-brand="alhabibshop"] .brand-logo-bg-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.brand-card[data-brand="alhabibshop"] .brand-logo-bg-img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: 100%;
    display: block;
    z-index: 1;
    position: relative;
}

.brand-card[data-brand="alhabibshop"] .brand-logo-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    z-index: 2;
    border-radius: 8px;
}

.brand-card[data-brand="noon"] {
    border-top: 4px solid #ffe600;
}

.brand-card[data-brand="noon"] .brand-logo {
    background: #fff !important;
    border: 1px solid #ffe600;
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 4px;
}

.brand-card[data-brand="noon"] .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.brand-card[data-brand="noon"] .brand-link {
    background: linear-gradient(135deg, #ffe600 0%, #fff700 100%);
    color: #222;
}

.brand-card[data-brand="noon"] .coupon-item {
    background: linear-gradient(135deg, #ffe600 0%, #fff700 100%);
    color: #222;
}

.brand-card[data-brand="noon"] .brand-logo-bg-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.brand-card[data-brand="noon"] .brand-logo-bg-img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: 100%;
    display: block;
    z-index: 1;
    position: relative;
}

.brand-card[data-brand="noon"] .brand-logo-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    z-index: 2;
    border-radius: 8px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand-logo {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    color: var(--white);
    transition: var(--transition);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-country {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--background-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-left: auto;
}

.brand-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Coupons Container */
.coupons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.coupon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient-success);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.coupon-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.coupon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(255, 255, 255, 0.1) 5px,
        rgba(255, 255, 255, 0.1) 10px
    );
}

.coupon-code {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.brand-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* How to Use Section */
.how-to-use {
    padding: 80px 0;
    background: var(--white);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
}

.stat-number {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2.5rem;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--background-light);
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--success-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 10000;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        grid-template-columns: 1fr;
    }

    .brand-card {
        background-size: 120px !important;
    }

    .coupons-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .floating-card {
        display: none;
    }

    .hero-image {
        height: 200px;
    }

    .stats-container {
        justify-content: center;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .brand-card {
        padding: 1.5rem;
        background-size: 100px !important;
    }

    .step {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(100%);
    }

    .toast.show {
        transform: translateY(0);
    }
}

/* RTL Specific Styles */
[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .brand-country {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .coupon-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .step {
    flex-direction: row-reverse;
}

[dir="rtl"] .brand-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .toast {
    right: auto;
    left: 2rem;
    transform: translateX(-100%);
}

[dir="rtl"] .toast.show {
    transform: translateX(0);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.brand-card,
.step,
.stat {
    animation: fadeInUp 0.6s ease-out;
}

.brand-card[data-brand="levelshoes"] .brand-logo-bg-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px; /* Adjust as needed */
}

.brand-card[data-brand="levelshoes"] .brand-logo-bg-img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: 100%;
    display: block;
    z-index: 1;
    position: relative;
}

.brand-card[data-brand="levelshoes"] .brand-logo-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    z-index: 2;
    border-radius: 8px;
}

/* Carrefour Brand Card */
.brand-card[data-brand="carrefour"] {
    border-top: 4px solid #0072ce;
}
.brand-card[data-brand="carrefour"] .brand-logo {
    background: #fff !important;
    border: 1.5px solid #0072ce;
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 4px;
}
.brand-card[data-brand="carrefour"] .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}
.brand-card[data-brand="carrefour"] .brand-link {
    background: linear-gradient(135deg, #0072ce 0%, #00a8e0 100%);
    color: #fff;
}
.brand-card[data-brand="carrefour"] .coupon-item {
    background: linear-gradient(135deg, #0072ce 0%, #00a8e0 100%);
    color: #fff;
}
.brand-card[data-brand="carrefour"] .brand-logo-bg-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}
.brand-card[data-brand="carrefour"] .brand-logo-bg-img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: 100%;
    display: block;
    z-index: 1;
    position: relative;
}
.brand-card[data-brand="carrefour"] .brand-logo-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    z-index: 2;
    border-radius: 8px;
}

/* Crocs Brand Card */
.brand-card[data-brand="crocs"] {
    border-top: 4px solid #C62026;
}
.brand-card[data-brand="crocs"] .brand-logo {
    background: #fff !important;
    border: 1.5px solid #C62026;
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 4px;
}
.brand-card[data-brand="crocs"] .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}
.brand-card[data-brand="crocs"] .brand-link {
    background: linear-gradient(135deg, #C62026 0%, #e53935 100%);
    color: #fff;
}
.brand-card[data-brand="crocs"] .coupon-item {
    background: linear-gradient(135deg, #C62026 0%, #e53935 100%);
    color: #fff;
}
.brand-card[data-brand="crocs"] .brand-logo-bg-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}
.brand-card[data-brand="crocs"] .brand-logo-bg-img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: 100%;
    display: block;
    z-index: 1;
    position: relative;
}
.brand-card[data-brand="crocs"] .brand-logo-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    z-index: 2;
    border-radius: 8px;
}

/* Nice Store Brand Card */
.brand-card[data-brand="nicestore"] {
    border-top: 4px solid #F9A825;
}
.brand-card[data-brand="nicestore"] .brand-logo {
    background: #fff !important;
    border: 1.5px solid #F9A825;
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 4px;
}
.brand-card[data-brand="nicestore"] .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}
.brand-card[data-brand="nicestore"] .brand-link {
    background: linear-gradient(135deg, #F9A825 0%, #FFD600 100%);
    color: #fff;
}
.brand-card[data-brand="nicestore"] .coupon-item {
    background: linear-gradient(135deg, #F9A825 0%, #FFD600 100%);
    color: #fff;
}
.brand-card[data-brand="nicestore"] .brand-logo-bg-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}
.brand-card[data-brand="nicestore"] .brand-logo-bg-img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: 100%;
    display: block;
    z-index: 1;
    position: relative;
}
.brand-card[data-brand="nicestore"] .brand-logo-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    z-index: 2;
    border-radius: 8px;
}

.brand-logos-row {
    display: none;
}
@media (max-width: 600px) {
    .brand-logos-row {
        display: flex;
        gap: 0.1rem;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin: 1rem 0 1.5rem 0;
    }
    .brand-logo-square {
        width: 60px;
        height: 60px;
        padding: 6px 2px 2px 2px;
    }
    .brand-logo-square img {
        width: 32px;
        height: 32px;
    }
    .brand-logo-label {
        display: none;
    }
    .hero-image {
        display: none !important;
    }
    .floating-card {
        display: none !important;
    }
}

.brand-card[data-brand="magrabi"] {
    border-top: 4px solid #3A3030;
}
.brand-card[data-brand="magrabi"] .brand-logo {
    background: #fff !important;
    border: 1.5px solid #3A3030;
    border-radius: 12px;
    padding: 4px;
}
.brand-card[data-brand="magrabi"] .brand-coupon,
.brand-card[data-brand="magrabi"] .copy-btn,
.brand-card[data-brand="magrabi"] .brand-shop-btn {
    background: linear-gradient(45deg, #3A3030, #6B5E5E);
    color: #fff;
}
.brand-card[data-brand="magrabi"] .coupon-item {
    background: linear-gradient(135deg, #3A3030 60%, #6B5E5E 100%);
    color: #fff;
}
.brand-card[data-brand="magrabi"] .copy-btn {
    background: transparent;
    color: #fff;
}
.brand-card[data-brand="magrabi"] .brand-link {
    background: linear-gradient(90deg, #3A3030 60%, #6B5E5E 100%);
    color: #fff;
}

.brand-card[data-brand="6thstreet"] {
    border-top: 4px solid #FFEDCD;
}
.brand-card[data-brand="6thstreet"] .brand-logo {
    background: #fff !important;
    border: 1.5px solid #FFEDCD;
    border-radius: 12px;
    padding: 4px;
}
.brand-card[data-brand="6thstreet"] .brand-coupon,
.brand-card[data-brand="6thstreet"] .copy-btn,
.brand-card[data-brand="6thstreet"] .brand-shop-btn {
    background: linear-gradient(45deg, #FFEDCD, #FFE4B5);
    color: #3A3030;
}
.brand-card[data-brand="6thstreet"] .coupon-item {
    background: linear-gradient(135deg, #FFEDCD 60%, #FFE4B5 100%);
    color: #3A3030;
}
.brand-card[data-brand="6thstreet"] .copy-btn {
    background: transparent;
    color: #3A3030;
}
.brand-card[data-brand="6thstreet"] .brand-link {
    background: linear-gradient(90deg, #FFEDCD 60%, #FFE4B5 100%);
    color: #3A3030;
}

.brand-card[data-brand="jeeny"] {
    border-top: 4px solid #E6007A;
}
.brand-card[data-brand="jeeny"] .brand-logo {
    background: #fff !important;
    border: 1.5px solid #E6007A;
    border-radius: 12px;
    padding: 4px;
}
.brand-card[data-brand="jeeny"] .brand-coupon,
.brand-card[data-brand="jeeny"] .copy-btn,
.brand-card[data-brand="jeeny"] .brand-shop-btn {
    background: linear-gradient(45deg, #E6007A, #FF4FA1);
    color: #fff;
}
.brand-card[data-brand="jeeny"] .coupon-item {
    background: linear-gradient(135deg, #E6007A 60%, #FF4FA1 100%);
    color: #fff;
}
.brand-card[data-brand="jeeny"] .copy-btn {
    background: transparent;
    color: #fff;
}
.brand-card[data-brand="jeeny"] .brand-link {
    background: linear-gradient(90deg, #E6007A 60%, #FF4FA1 100%);
    color: #fff;
}

.brand-card[data-brand="alsaifgallery"] {
    border-top: 4px solid #C8102E;
}
.brand-card[data-brand="alsaifgallery"] .brand-logo {
    background: #fff !important;
    border: 1.5px solid #C8102E;
    border-radius: 12px;
    padding: 4px;
}
.brand-card[data-brand="alsaifgallery"] .brand-coupon,
.brand-card[data-brand="alsaifgallery"] .copy-btn,
.brand-card[data-brand="alsaifgallery"] .brand-shop-btn {
    background: linear-gradient(45deg, #C8102E, #E94B4B);
    color: #fff;
}
.brand-card[data-brand="alsaifgallery"] .coupon-item {
    background: linear-gradient(135deg, #C8102E 60%, #E94B4B 100%);
    color: #fff;
}
.brand-card[data-brand="alsaifgallery"] .copy-btn {
    background: transparent;
    color: #fff;
}
.brand-card[data-brand="alsaifgallery"] .brand-link {
    background: linear-gradient(90deg, #C8102E 60%, #E94B4B 100%);
    color: #fff;
}

/* Ensure bottom image and overlay match Nice Store style */
.brand-card .brand-logo-bg-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}
.brand-card .brand-logo-bg-img {
    max-width: 90px;
    max-height: 60px;
    opacity: 0.13;
    object-fit: contain;
    filter: grayscale(0.2);
}
.brand-card .brand-logo-bg-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(0deg, #fff 60%, transparent 100%);
    opacity: 0.15;
    pointer-events: none;
}

.brand-card[data-brand="magrabi"] .brand-logo-bg-container,
.brand-card[data-brand="6thstreet"] .brand-logo-bg-container,
.brand-card[data-brand="jeeny"] .brand-logo-bg-container,
.brand-card[data-brand="alsaifgallery"] .brand-logo-bg-container {
    position: relative;
    width: 100%;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}
.brand-card[data-brand="magrabi"] .brand-logo-bg-overlay,
.brand-card[data-brand="6thstreet"] .brand-logo-bg-overlay,
.brand-card[data-brand="jeeny"] .brand-logo-bg-overlay,
.brand-card[data-brand="alsaifgallery"] .brand-logo-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    z-index: 2;
    border-radius: 8px;
} 

.brand-card[data-brand="nooneg"] {
    border-top: 4px solid #ffe600;
}
.brand-card[data-brand="nooneg"] .brand-logo {
    background: #fff !important;
    border: 1px solid #ffe600;
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 4px;
}
.brand-card[data-brand="nooneg"] .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}
.brand-card[data-brand="nooneg"] .brand-link {
    background: linear-gradient(135deg, #ffe600 0%, #fff700 100%);
    color: #222;
}
.brand-card[data-brand="nooneg"] .coupon-item {
    background: linear-gradient(135deg, #ffe600 0%, #fff700 100%);
    color: #222;
}
.brand-card[data-brand="nooneg"] .brand-logo-bg-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}
.brand-card[data-brand="nooneg"] .brand-logo-bg-img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: 100%;
    display: block;
    z-index: 1;
    position: relative;
}
.brand-card[data-brand="nooneg"] .brand-logo-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.4);
    z-index: 2;
    border-radius: 8px;
} 