:root {
    --primary: #21c7f3;
    --primary-dark: #0878d8;
    --navy: #062f5f;
    --navy-light: #0b4f8f;
    --text: #172b3a;
    --muted: #6b7c8a;
    --border: #d8e8f2;
    --soft: #f4f9fd;
    --white: #ffffff;
    --warning: #fff6dc;
    --warning-text: #7a5600;
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-family: "Tajawal", Tahoma, Arial, sans-serif;
    background:
        linear-gradient(135deg, rgba(33, 199, 243, 0.18) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(315deg, rgba(8, 120, 216, 0.14) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, #f6fbff 0%, #eef8ff 54%, #f9fcff 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 15%, rgba(8, 120, 216, 0.045) 15%, rgba(8, 120, 216, 0.045) 15.5%, transparent 15.5%),
        linear-gradient(120deg, transparent 55%, rgba(33, 199, 243, 0.05) 55%, rgba(33, 199, 243, 0.05) 55.5%, transparent 55.5%),
        linear-gradient(120deg, transparent 78%, rgba(8, 120, 216, 0.04) 78%, rgba(8, 120, 216, 0.04) 78.5%, transparent 78.5%);
}

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

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

.customer-page {
    width: min(1120px, calc(100% - 30px));
    margin: 0 auto;
    padding: 28px 0 24px;
    flex: 1 0 auto;
}

.customer-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.2fr);
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(216, 232, 242, 0.96);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 28px 68px rgba(6, 47, 95, 0.15), 0 8px 24px rgba(8, 120, 216, 0.08);
    backdrop-filter: blur(12px);
}

.hero-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px 34px;
    color: var(--white);
    text-align: center;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 120px),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 54%, var(--primary-dark) 100%);
}

.hero-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.09) 18%, rgba(255, 255, 255, 0.09) 19%, transparent 19%),
        linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.07) 40%, rgba(255, 255, 255, 0.07) 41%, transparent 41%),
        linear-gradient(120deg, transparent 72%, rgba(255, 255, 255, 0.06) 72%, rgba(255, 255, 255, 0.06) 73%, transparent 73%);
}

.brand-logo {
    width: 136px;
    height: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 11px;
}

.brand-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-bottom: 14px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 800;
}

.brand-copy h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.5;
    font-weight: 900;
}

.brand-copy p {
    max-width: 360px;
    margin: 12px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.9;
}

.hero-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 46px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 253, 255, 0.98));
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.panel-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 14px 28px rgba(8, 120, 216, 0.22);
    font-size: 23px;
}

.panel-header h2 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 28px;
    line-height: 1.45;
    font-weight: 900;
}

.panel-header p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 10px;
    width: 100%;
}

.search-control {
    position: relative;
}

.search-control i {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--primary-dark);
    font-size: 19px;
    opacity: 0.75;
    pointer-events: none;
}

.search-control input {
    width: 100%;
    height: 54px;
    padding: 10px 48px 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: #fbfdff;
    font-size: 15px;
    font-weight: 700;
    direction: ltr;
    text-align: right;
    outline: none;
    box-shadow: none;
    transition: 0.22s ease;
}

.search-control input::placeholder {
    color: #9aacba;
    font-weight: 500;
}

.search-control input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(33, 199, 243, 0.15), 0 12px 24px rgba(8, 120, 216, 0.08);
}

.btn-search {
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 16px 30px rgba(8, 120, 216, 0.25);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.22s ease;
}

.btn-search:hover,
.btn-search:focus {
    color: var(--white);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #35d9ff, #066fc8);
    box-shadow: 0 20px 36px rgba(8, 120, 216, 0.32);
    outline: none;
}

.alert {
    padding: 13px 15px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
}

.alert-warning {
    color: var(--warning-text);
    background: var(--warning);
    box-shadow: inset 0 0 0 1px rgba(255, 190, 30, 0.18);
}

.result-section {
    margin-top: 26px;
}

.section-title {
    margin-bottom: 14px;
}

.section-title span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(33, 199, 243, 0.11);
    font-size: 13px;
    font-weight: 900;
}

.section-title h3 {
    margin: 10px 0 0;
    color: var(--navy);
    font-size: 24px;
    line-height: 1.5;
    font-weight: 900;
}

.result-card,
.table-shell {
    overflow: hidden;
    border: 1px solid rgba(216, 232, 242, 0.96);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 44px rgba(6, 47, 95, 0.1);
}

.result-card {
    padding: 22px;
}

.result-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--primary-dark));
}

.status-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 800;
}

.result-status strong {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 900;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.info-item {
    min-height: 92px;
    padding: 14px;
    border: 1px solid rgba(216, 232, 242, 0.9);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fcff);
}

.info-item span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.info-item strong {
    display: block;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 900;
    word-break: break-word;
}

.customer-table {
    margin: 0;
    color: var(--text);
    background: transparent;
}

.customer-table thead th {
    border: 0;
    color: var(--primary-dark);
    background: linear-gradient(180deg, rgba(33, 199, 243, 0.16), rgba(33, 199, 243, 0.08));
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.customer-table th,
.customer-table td {
    padding: 14px 12px;
    border-color: #eaf2f8;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 700;
}

.customer-table tbody tr {
    background: rgba(255, 255, 255, 0.72);
    transition: 0.18s ease;
}

.customer-table tbody tr:hover {
    background: #f5fbff;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.status-pill.is-active {
    color: #066fc8;
    background: rgba(33, 199, 243, 0.13);
}

.status-pill.is-delivered {
    color: #607080;
    background: #eef3f7;
}

.social-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.social-strip a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216, 232, 242, 0.95);
    border-radius: 8px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(6, 47, 95, 0.08);
    font-size: 18px;
    transition: 0.2s ease;
}

.social-strip a:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: translateY(-2px);
}

.customer-footer {
    width: min(1120px, calc(100% - 30px));
    margin: auto auto 24px;
    flex-shrink: 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(216, 232, 242, 0.96);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(6, 47, 95, 0.08);
}

.footer-inner a,
.footer-address {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--navy);
    background: #f7fbff;
    font-size: 14px;
    font-weight: 800;
}

.footer-inner i {
    color: var(--primary-dark);
}

@media (max-width: 991px) {
    .customer-page,
    .customer-footer {
        width: min(100% - 24px, 1120px);
    }

    .customer-hero {
        grid-template-columns: 1fr;
    }

    .hero-brand {
        min-height: 290px;
    }

    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .customer-page {
        width: min(100% - 22px, 1120px);
        padding: 12px 0 18px;
    }

    .customer-footer {
        width: min(100% - 22px, 1120px);
        margin-bottom: 12px;
    }

    .customer-hero {
        min-height: auto;
    }

    .hero-brand {
        padding: 32px 20px;
    }

    .brand-logo {
        width: 108px;
        height: 108px;
        margin-bottom: 18px;
    }

    .brand-copy h1 {
        font-size: 24px;
    }

    .hero-panel {
        padding: 30px 20px 34px;
    }

    .panel-header {
        align-items: flex-start;
    }

    .panel-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 20px;
    }

    .panel-header h2 {
        font-size: 24px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .btn-search,
    .search-control input {
        height: 52px;
    }

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

    .result-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-table th,
    .customer-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-inner a,
    .footer-address {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .customer-page,
    .customer-footer {
        width: min(100% - 16px, 1120px);
    }

    .hero-panel {
        padding-inline: 16px;
    }

    .panel-header {
        gap: 10px;
        flex-direction: column;
    }

    .panel-header h2 {
        font-size: 22px;
    }

    .brand-copy h1 {
        font-size: 22px;
    }

    .social-strip {
        gap: 8px;
        flex-wrap: wrap;
    }
}
