:root {
    /* Colors */
    --primary-charcoal: #1A1A1A;
    --accent-gold: #C5A059;
    --bg-cream: #F9F7F2;
    --text-charcoal: #1A1A1A;
    --text-light: #666666;
    --white: #FFFFFF;
    --overlay-charcoal: rgba(26, 26, 26, 0.05);
    
    /* Typography */
    --font-serif: 'Noto Serif', 'Times New Roman', serif;
    --font-sans: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Spacing */
    --unit: 8px;
    --container-max: 1280px;
}

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

body {
    background-color: var(--bg-cream);
    color: var(--text-charcoal);
    font-family: var(--font-sans);
    line-height: 1.6;
    direction: rtl; /* Arabic-first */
    text-align: right;
}

[lang="en"] body {
    direction: ltr;
    text-align: left;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Premium Buttons */
.btn-premium {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--primary-charcoal);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-premium:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.btn-outline-gold {
    display: inline-block;
    padding: 11px 31px;
    background-color: transparent;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-gold);
}

.btn-outline-gold:hover {
    background-color: var(--accent-gold);
    color: var(--white);
}

/* Cards */
.card-premium {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 20px rgba(26, 26, 26, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0px 12px 40px rgba(26, 26, 26, 0.08);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.66%; /* 3:2 Aspect Ratio */
    background: #f0f0f0;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--primary-charcoal);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Coming Soon State */
.coming-soon {
    opacity: 0.7;
    filter: grayscale(0.5);
    cursor: not-allowed;
    position: relative;
}

.coming-soon-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Header */
header {
    background: rgba(249, 247, 242, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-charcoal);
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(249, 247, 242, 1) 0%, rgba(249, 247, 242, 0) 100%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

/* Broadcast Overlay */
.broadcast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-charcoal);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 40px;
}

.broadcast-content {
    max-width: 600px;
}

.broadcast-logo {
    height: 60px;
    margin-bottom: 40px;
}

.broadcast-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--accent-gold);
}

.broadcast-subtitle {
    font-size: 1.5rem;
    margin-bottom: 32px;
}

/* Search Bar */
.search-wrapper {
    max-width: 600px;
    margin: 0 auto 48px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 24px;
    padding-right: 50px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-sans);
    background: var(--white);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-icon {
    font-size: 4rem;
    color: rgba(197, 160, 89, 0.2);
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none;
    }
}

/* Wizard Shared Layout */
.wizard-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    max-width: 48rem;
    margin: 0 auto;
}

.wizard-step-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wizard-step-badge {
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #785a1a;
    background-color: rgba(254, 212, 136, 0.3);
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid #fed488;
}

.wizard-step-divider {
    height: 1px;
    width: 48px;
    background-color: #c4c7c7;
}

.wizard-step-label {
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #747878;
}

.wizard-title {
    font-family: var(--font-serif);
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--primary-charcoal);
}

.wizard-selected-service {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(119, 90, 25, 0.2);
    box-shadow: 0px 4px 20px rgba(26,26,26,0.04);
    margin-top: 8px;
}

.service-icon-wrapper {
    background-color: rgba(119, 90, 25, 0.1);
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-wrapper .material-symbols-outlined {
    color: #775a19;
}

.service-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

[lang="en"] .service-info {
    text-align: left;
}

.service-label {
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #444748;
}

.service-name {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
    color: #000000;
}

.service-edit-btn {
    margin-right: 24px;
    color: #747878;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}
[lang="en"] .service-edit-btn {
    margin-right: 0;
    margin-left: 24px;
}

.service-edit-btn:hover {
    color: #775a19;
}

/* Wizard Search */
.wizard-search-section {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    position: relative;
}

.wizard-search-input {
    width: 100%;
    background-color: #ffffff;
    border: none;
    border-bottom: 2px solid #c4c7c7;
    border-radius: 12px 12px 0 0;
    padding: 20px 24px;
    padding-right: 56px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: #1b1c1c;
    box-shadow: 0px 4px 20px rgba(26,26,26,0.04);
    transition: border-color 0.3s;
    outline: none;
}

[lang="en"] .wizard-search-input {
    padding-right: 24px;
    padding-left: 56px;
}

.wizard-search-input:focus {
    border-color: #775a19;
}

.wizard-search-icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #747878;
    z-index: 10;
    transition: color 0.3s;
}

[lang="en"] .wizard-search-icon {
    right: auto;
    left: 24px;
}

.wizard-search-input:focus + .wizard-search-icon,
.wizard-search-section:focus-within .wizard-search-icon {
    color: #775a19;
}

/* Countries Grid */
.country-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .country-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .country-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.country-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 20px rgba(26,26,26,0.04);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.country-card:hover {
    box-shadow: 0px 12px 40px rgba(26,26,26,0.08);
    border-color: rgba(119, 90, 25, 0.3);
}

.country-card-img-wrapper {
    height: 224px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #efeded;
}

.country-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.country-card:hover .country-card-img-wrapper img {
    transform: scale(1.05);
}

.country-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2), transparent);
}

.country-card-badge-container {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

[lang="en"] .country-card-badge-container {
    right: auto;
    left: 24px;
}

.country-card-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-size: 18px;
    line-height: 1;
}

.country-card-footer {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
}

.country-card-title {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.country-card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #c4c7c7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #747878;
    transition: all 0.3s;
}

.country-card:hover .country-card-arrow {
    background-color: #775a19;
    border-color: #775a19;
    color: #ffffff;
}

[lang="en"] .country-card-arrow .material-symbols-outlined {
    transform: scaleX(-1); /* flip arrow for LTR */
}

@media (max-width: 768px) {
    .wizard-title {
        font-size: 36px;
    }
}
