/* Language Switcher */
.lang-switcher-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

[dir="ltr"] .lang-switcher-container {
    right: 20px;
    left: auto;
}

[dir="rtl"] .lang-switcher-container {
    right: 20px;
    left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.partner-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    touch-action: manipulation;
}

.partner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: var(--accent-light);
}

.lang-select {
    background: var(--surface-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

.lang-select:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-select option {
    background: var(--primary-dark);
    color: white;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.app-logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(var(--shadow-md));
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.app-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}



:root {
    --primary: #1e293b;
    /* Matte Navy */
    --primary-dark: #0f172a;
    /* Darker Navy-Black */
    --secondary: #64748b;
    --accent: #d4af37;
    /* Metallic Gold */
    --accent-light: #f1c40f;
    /* Brighter Gold */
    --background: #ffffff;
    /* White Background */
    --surface: #ffffff;
    /* Light card surface */
    --surface-light: #f1f5f9;
    --text-main: #0f172a;
    /* Deeper Navy Text */
    --text-muted: #475569;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'Outfit', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overscroll-behavior-y: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    /* Disable long-press menu */
}

a,
img {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: var(--background);
    color: var(--text-main);
    padding: calc(80px + env(safe-area-inset-top)) 0 80px;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--surface-light);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    z-index: 0;
}

/* Sector Switcher */
.sector-switcher {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.sector-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.sector-btn {
    background: var(--surface-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.sector-btn i {
    font-size: 1.8rem;
    transition: transform 0.3s;
    opacity: 0.8;
}

.sector-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.sector-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.sector-btn.active i {
    transform: scale(1.1);
    opacity: 1;
}

.sector-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.sector-btn.active::after {
    transform: scaleX(1);
    background: #000;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* Search Box Form */
.search-box {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: 18px 70px 18px 25px;
    border-radius: 30px;
    border: 2px solid var(--surface-light);
    background: var(--surface);
    color: var(--text-main);
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    outline: none;
}

[dir="ltr"] .search-box input {
    padding: 18px 25px 18px 70px;
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 55px;
    background: var(--accent);
    border: none;
    border-radius: 25px;
    color: #000;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    touch-action: manipulation;
}

[dir="ltr"] .search-btn {
    right: auto;
    left: 5px;
}

.search-btn:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

.search-btn.active {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}


/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid var(--surface-light);
    background: var(--surface-light);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    animation: fadeInScale 0.4s ease-out forwards;
    touch-action: manipulation;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--white);
}

.tab-btn:hover,
.region-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
}

.tab-btn.active,
.region-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    font-weight: 700;
}

/* Comparison Info */
.comparison-info {
    margin-top: 40px;
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-right: 5px solid var(--primary);
}

.comparison-info h2 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Region Mini Tags in Cards */
.region-icons {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.region-mini-tag {
    font-size: 0.7rem;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--secondary);
}

/* Grid Layout */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

/* Company Card */
.company-card {
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.company-logo-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 3px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.company-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.2;
}

/* Features Styling */
.features-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--primary-dark);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

[dir="rtl"] .price-tag {
    right: 20px;
    left: auto;
}

/* Recommendation Levels & Container */
.price-tag-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    z-index: 5;
}

[dir="rtl"] .price-tag-container {
    right: 20px;
    left: auto;
}

.price-tag {
    position: static;
    /* Now managed by container */
    background: var(--accent);
    color: var(--text-main);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.recommendation-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.rec-high {
    background: #10b981;
    color: white;
}

.rec-mid {
    background: #f59e0b;
    color: white;
}

.rec-low {
    background: #94a3b8;
    color: white;
}

/* Coverage Globe Button - Move to Right */
.coverage-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    z-index: 5;
}

[dir="rtl"] .coverage-btn {
    right: auto;
    left: 20px;
}

/* Recommendation Levels */
.recommendation-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    /* Left side in RTL */
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.rec-high {
    background: #10b981;
    color: white;
}

.rec-mid {
    background: #f59e0b;
    color: white;
}

.rec-low {
    background: #94a3b8;
    color: white;
}

.coverage-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--accent);
    color: var(--text-main);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: var(--surface);
    border: 1px solid var(--accent);
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 650px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
}

@keyframes modalIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-title {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section label {
    display: block;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.modal-section p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.feature-item:hover i {
    color: var(--white);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 25px -5px rgba(212, 175, 55, 0.2);
}

.company-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 35px;
    /* Clear space for absolute badges */
}

.badge-health {
    background: #dcfce7;
    color: #15803d;
}

.badge-car {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-realestate {
    background: #fef9c3;
    color: #a16207;
}

.badge-life {
    background: #f3e8ff;
    color: #7e22ce;
}

.badge-daily {
    background: #f1f5f9;
    color: #334155;
}

.badge-savings {
    background: #fef3c7;
    color: #92400e;
}

.badge-loans {
    background: #dcfce7;
    color: #166534;
}

.badge-invest {
    background: #fae8ff;
    color: #86198f;
}

.badge-bank {
    background: #f1f5f9;
    color: #334155;
}

/* Telecom Badges */
.badge-mobile {
    background: #f1f5f9;
    color: #1e293b;
}

.badge-internet {
    background: #fdf2f8;
    color: #9d174d;
}

.badge-tv {
    background: #f5f3ff;
    color: #5b21b6;
}

.badge-packs {
    background: #ecfdf5;
    color: #065f46;
}

.badge-telecom {
    background: #fff7ed;
    color: #9a3412;
}

.company-card h3 {
    margin: 15px 0 10px;
    font-size: 1.4rem;
    color: var(--accent);
}

.company-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.visit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #b8860b 100%);
    color: #000;
    text-decoration: none;
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 700;
    transition: all 0.3s;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 1px;
    touch-action: manipulation;
}

.visit-btn:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Smart Wizard Styles */
.smart-wizard-container {
    max-width: 800px;
    margin: 40px auto 0;
    background: var(--surface-light);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
    text-align: right;
}

.wizard-header {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.wizard-header h3 {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.wizard-header p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.8;
}

.wizard-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wizard-step {
    display: none;
    animation: slideIn 0.4s ease-out forwards;
}

.wizard-step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wizard-step label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.wizard-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wiz-opt {
    flex: 1;
    min-width: 120px;
    padding: 15px;
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.wiz-opt i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.wiz-opt:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.wiz-opt.selected {
    background: var(--accent);
    color: var(--text-main);
    border-color: var(--white);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.wizard-footer {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.reset-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wizard-progress {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 33%;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Best Match Highlighting */
.company-card.best-match {
    border: 2px solid var(--accent);
    position: relative;
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15);
}

.company-card.best-match::before {
    content: attr(data-best-match);
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #b8860b 100%);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
    z-index: 10;
}

[dir="ltr"] .company-card {
    text-align: left;
}

.comparison-block {
    margin: 15px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.comp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.comp-row:last-child {
    border-bottom: none;
}

.comp-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.comp-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-dark);
}

[dir="ltr"] .benefit-content {
    padding-right: 0;
    padding-right: 20px;
}

[dir="ltr"] .wizard-header,
[dir="ltr"] .smart-wizard-container {
    text-align: left;
}

.footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--surface-light);
    color: var(--text-muted);
    background: var(--background);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-link-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.admin-link-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .sector-switcher {
        gap: 10px;
        padding: 0 10px;
    }

    .sector-btn {
        min-width: calc(50% - 10px);
        flex: 1 1 calc(50% - 10px);
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .sector-btn i {
        font-size: 1.4rem;
    }

    .company-grid {
        grid-template-columns: 1fr;
    }

    .wizard-steps {
        flex-direction: column;
        gap: 15px;
    }

    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .region-filters {
        flex-direction: column;
        align-items: center;
    }
}

/* Partner Form Grid */
.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .form-group-row {
        grid-template-columns: 1fr;
    }
}

/* Admin Dashboard Specifics */
.admin-dashboard-content {
    max-width: 1000px !important;
    width: 95vw;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
}

.add-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.add-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--surface-light);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.admin-table-container {
    background: var(--surface-light);
    border-radius: 12px;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[dir="ltr"] .admin-table th,
[dir="ltr"] .admin-table td {
    text-align: left;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--accent);
    font-weight: 700;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.action-btns {
    display: flex;
    gap: 8px;
}

.edit-btn,
.delete-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
}

.edit-btn {
    background: #3b82f6;
    color: white;
}

.delete-btn {
    background: #ef4444;
    color: white;
}

.edit-btn:hover {
    background: #2563eb;
}

.delete-btn:hover {
    background: #dc2626;
}

/* Main Footer */
.main-footer {
    background: var(--surface-light);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    text-align: center;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.admin-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    opacity: 0.7;
}

.admin-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* PWA Install Section */
.pwa-install-section {
    padding: 60px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 100;
}

.pwa-install-section h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 30px;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-btn {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 10px 25px !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    min-width: 220px;
    touch-action: manipulation;
}

[dir="rtl"] .store-btn {
    text-align: right;
}

.store-btn i {
    font-size: 2rem;
}

.store-btn .btn-text {
    display: flex;
    flex-direction: column;
}

.store-btn .btn-text span {
    font-size: 0.7rem;
    opacity: 0.8;
}

.store-btn .btn-text strong {
    font-size: 1.1rem;
}

.store-btn:hover {
    background: #111 !important;
    border-color: var(--accent) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.ios-guide {
    margin-top: 20px;
    color: var(--accent);
    font-size: 0.95rem;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    display: inline-block;
}

/* Card Share & Actions */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.card-actions .visit-btn {
    flex: 2;
    margin-top: 0 !important;
}

.share-btn-card {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn-card:hover {
    background: #e2e8f0;
    color: var(--primary-dark);
}

[dir="rtl"] .share-btn-card {
    flex-direction: row-reverse;
}

/* Share Modal Styling */
.share-modal-content {
    max-width: 350px !important;
    text-align: center;
    padding: 30px 20px !important;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.share-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.share-opt i {
    font-size: 1.5rem;
}

.share-opt:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.share-opt.wa i {
    color: #25D366;
}

.share-opt.fb i {
    color: #1877F2;
}

.share-opt.tg i {
    color: #0088cc;
}

.share-opt.copy i {
    color: var(--primary);
}

.share-url-input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .store-buttons {
        flex-direction: column;
        align-items: center;
    }
}