/* ==================== RESET & BASE ==================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple: #4f008c;
    --pink: #ff375e;
    --white: #ffffff;
    --dark: #1d252d;
    --gray: #5d696f;
    --light-gray: #8e9aa0;
    --border-gray: #dde0e2;
    --bg-light: #f3f3f1;
}

html {
    font-family: 'Tajawal', 'STCForward', Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    background-color: #fff;
    color: var(--dark);
    min-width: 360px;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    background-color: #fff;
    border-bottom: 1px solid rgba(142, 154, 160, 0.5);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-btn svg {
    width: 24px;
    height: 24px;
    color: var(--purple);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 60px;
    height: auto;
}

.header-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    min-width: 38px;
    min-height: 38px;
}

.header-icon-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* أيقونة الشخص - وردية مع بوردر */
.profile-btn {
    border: 1.5px solid var(--pink) !important;
    border-radius: 6px;
    color: var(--pink) !important;
    padding: 6px 10px;
}

.search-btn {
    color: var(--dark);
}

.cart-btn {
    position: relative;
}

.header-divider {
    width: 1px;
    height: 22px;
    background-color: var(--border-gray);
    flex-shrink: 0;
}

.cart-badge {
    position: absolute;
    top: -2px;
    left: -2px;
    background-color: var(--pink);
    color: #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== MOBILE DRAWER ==================== */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.4);
    z-index: 10000;
}

.mobile-overlay.active {
    display: block;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background-color: #fff;
    z-index: 10001;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding-top: 60px;
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 10002;
    justify-content: space-between;
}

.close-drawer {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
}

.close-drawer svg {
    width: 20px;
    height: 20px;
}

.drawer-nav {
    padding: 20px;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-gray);
    cursor: pointer;
}

.drawer-nav-item span {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
}

.drawer-nav-item svg {
    width: 16px;
    height: 16px;
    color: var(--gray);
    transform: rotate(180deg);
}

/* Bottom tab bar in drawer */
.bottom-tab-bar {
    background-color: var(--purple);
    padding: 10px 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.bottom-tab-bar a {
    color: #dde0e2;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.bottom-tab-bar a:hover {
    color: #fff;
}

.bottom-tab-bar a.active {
    color: var(--pink);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    padding-top: 60px;
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-height: 300px;
}

.hero-banner {
    padding: 0 20px;
}

.hero-banner img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.hero-banner-text {
    padding: 24px 20px 16px;
    background-color: #fff;
}

.hero-banner-title {
    color: var(--dark);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.4;
}

/* ==================== QUICK PAY FORM SECTION ==================== */
.quick-pay-section {
    padding: 100px 20px 30px;
    background-color: #fff;
}

.quick-pay-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.quick-pay-subtitle {
    font-size: 14px;
    color: var(--light-gray);
    margin-bottom: 18px;
}

.quick-pay-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    color: var(--dark);
    direction: ltr;
    text-align: right;
    outline: none;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--purple);
}

.input-group input::placeholder {
    color: var(--light-gray);
    direction: rtl;
    text-align: right;
}

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-btn {
    background: none;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.share-btn:hover {
    background: var(--bg-light);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    color: var(--gray);
}

.pay-now-btn {
    flex: 1;
    background-color: var(--pink);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    font-family: inherit;
}

.pay-now-btn:hover {
    background-color: #e02e50;
}

.pay-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== SERVICE CARDS ==================== */
.services-section {
    padding: 20px;
    background-color: #fff;
}

.service-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 20px;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-card-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card-icon svg {
    width: 50px;
    height: 50px;
    color: var(--purple);
    fill: var(--purple);
}

.service-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.service-card-desc {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.6;
}

.service-card-btn {
    display: inline-block;
    background-color: var(--pink);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    text-align: center;
    align-self: flex-start;
    width: auto;
}

.service-card-btn:hover {
    background-color: #e02e50;
}

/* ==================== NEED HELP SECTION ==================== */
.need-help-section {
    background-color: var(--pink);
    padding: 40px 20px;
}

.need-help-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

.need-help-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.help-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.help-btn {
    background-color: #fff;
    border: none;
    border-radius: 10px;
    padding: 16px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    transition: background 0.2s, transform 0.1s;
}

.help-btn:hover {
    background-color: var(--bg-light);
    transform: translateY(-1px);
}

.help-btn svg {
    width: 18px;
    height: 18px;
    color: var(--pink);
    flex-shrink: 0;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--purple);
    padding: 40px 20px 20px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Social icons */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.social-icon-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.social-icon-btn svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

/* Footer links */
.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-links-col-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list li a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.2s;
}

.footer-links-list li a:hover {
    color: #fff;
}

/* Footer bottom */
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.footer-legal a {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

.footer-legal a:hover {
    color: #fff;
}

.footer-legal span {
    color: rgba(255,255,255,0.3);
}

.footer-copyright {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    direction: ltr;
}

/* ==================== DIVIDER ==================== */
.section-divider {
    display: none;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 768px) {
    .header {
        height: 100px;
    }

    .main-content {
        padding-top: 100px;
    }

    .hero-banner img {
        height: 400px;
    }

    .hero-banner-title {
        font-size: 38px;
    }

    .help-buttons-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 30px;
    }

    .service-card {
        margin-bottom: 0;
    }

    .quick-pay-section {
        max-width: 600px;
        margin: 0 auto;
        padding: 40px 20px;
    }
}

@media (min-width: 992px) {
    .hamburger-btn {
        display: none;
    }

    .desktop-nav {
        display: flex !important;
    }
}
