:root {
    --navy: #0b1738;
    --blue: #142e63;
    --royal: #1e4fa3;
    --gold: #f5b544;
    --gold2: #ffd67a;
    --mint: #16a34a;
    --dark: #101828;
    --muted: #667085;
    --light: #f3f7ff;
    --white: #ffffff;
    --border: #d0d5dd;
    --danger: #b42318;
    --success: #027a48;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
    color: var(--dark);
    background:
        radial-gradient(circle at 18% 12%, rgba(245,181,68,.22), transparent 24%),
        radial-gradient(circle at 80% 18%, rgba(30,79,163,.16), transparent 28%),
        linear-gradient(135deg, #eef4ff 0%, #ffffff 45%, #f8fbff 100%);
    min-height: 100vh;
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(20,46,99,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20,46,99,.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.wrapper {
    width: min(1180px, 94%);
    margin: 0 auto;
    padding: 26px 0 34px;
    position: relative;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    color: var(--navy);
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    box-shadow: 0 12px 28px rgba(245,181,68,.30);
}

.top-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: stretch;
    gap: 22px;
    background:
        radial-gradient(circle at 85% 12%, rgba(245,181,68,.22), transparent 22%),
        linear-gradient(135deg, var(--navy), var(--blue) 55%, #071026);
    color: white;
    border-radius: 34px;
    padding: 30px;
    box-shadow: 0 24px 80px rgba(10,23,56,.27);
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    min-height: 500px;
}

.hero:before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 62px solid rgba(255,255,255,.055);
    border-radius: 50%;
    right: -170px;
    top: -190px;
}

.hero:after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background: rgba(245,181,68,.12);
    filter: blur(10px);
    border-radius: 40px;
    left: -110px;
    bottom: -110px;
    transform: rotate(20deg);
}

.hero-content,
.teacher-card {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.20);
    padding: 10px 15px;
    border-radius: 999px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 18px 0 10px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--gold2);
    text-shadow: 0 6px 22px rgba(245,181,68,.20);
}

.hero p {
    margin: 0 0 20px;
    color: rgba(255,255,255,.84);
    font-size: 19px;
    line-height: 1.9;
    max-width: 680px;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.hero-point {
    padding: 15px 13px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
}

.hero-point strong {
    display: block;
    font-size: 19px;
    color: white;
    margin-bottom: 4px;
}

.hero-point span {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: 13px;
}

.teacher-card {
    min-height: 440px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.07)),
        radial-gradient(circle at 50% 16%, rgba(245,181,68,.22), transparent 35%);
    border: 1px solid rgba(255,255,255,.18);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.20);
}

.teacher-card img {
    width: 100%;
    height: 370px;
    object-fit: cover;
    object-position: top center;
    border-radius: 24px;
    display: block;
    background: #0f2148;
}

.teacher-name {
    margin-top: 12px;
    background: rgba(7,16,38,.72);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 16px;
    text-align: center;
    backdrop-filter: blur(12px);
}

.teacher-name span {
    display: block;
    color: var(--gold2);
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 4px;
}

.teacher-name small {
    color: rgba(255,255,255,.78);
    font-size: 14px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn,
button {
    border: 0;
    color: #111827;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    font-weight: 900;
    padding: 15px 24px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 17px;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    box-shadow: 0 14px 30px rgba(245,181,68,.25);
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(245,181,68,.30);
}

.btn.secondary {
    background: rgba(255,255,255,.11);
    color: white;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: none;
}

.btn.light {
    background: #eef4ff;
    color: var(--blue);
    box-shadow: none;
}

.btn.whatsapp {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    box-shadow: 0 14px 30px rgba(34,197,94,.22);
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.trust-card {
    background: rgba(255,255,255,.80);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(208,213,221,.65);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(16,24,40,.07);
}

.trust-card b {
    display: block;
    color: var(--navy);
    margin-bottom: 6px;
    font-size: 17px;
}

.trust-card span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.card {
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(208,213,221,.70);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(16,24,40,.09);
    backdrop-filter: blur(18px);
}

.form-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.form-title h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(24px, 3vw, 34px);
}

.form-title p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.contact-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.field { display: flex; flex-direction: column; gap: 8px; }

label {
    font-weight: 800;
    font-size: 15px;
    color: #182230;
}

input, select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px 15px;
    font-size: 16px;
    background: #fff;
    outline: none;
    transition: .2s;
}

input:focus, select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 5px rgba(245,181,68,.17);
}

.full { grid-column: 1 / -1; }

.hint {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 22px;
    flex-wrap: wrap;
}

.errors, .success {
    border-radius: 18px;
    padding: 15px 17px;
    margin-bottom: 18px;
}

.errors {
    background: #fff1f0;
    color: var(--danger);
    border: 1px solid #fecdca;
}

.success {
    background: #ecfdf3;
    color: var(--success);
    border: 1px solid #abefc6;
}

.errors ul { margin: 8px 0 0; }

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

th, td {
    padding: 12px 14px;
    border-bottom: 1px solid #eaecf0;
    text-align: right;
    vertical-align: middle;
}

th {
    background: #f9fafb;
    font-size: 14px;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.login-box {
    max-width: 460px;
    margin: 70px auto;
}

.footer-note {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.float-whatsapp {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 20;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    text-decoration: none;
    font-size: 30px;
    box-shadow: 0 18px 45px rgba(22,163,74,.35);
}

.float-whatsapp:after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid rgba(34,197,94,.28);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(.92); opacity: .85; }
    100% { transform: scale(1.28); opacity: 0; }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .teacher-card {
        max-width: 520px;
        margin: auto;
        width: 100%;
    }

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

@media (max-width: 720px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        padding: 20px;
        border-radius: 24px;
    }

    .hero-points,
    .grid,
    .trust-strip {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 22px;
        border-radius: 22px;
    }

    .actions button,
    .actions .btn,
    .hero-cta .btn,
    .contact-box .btn {
        width: 100%;
    }

    .teacher-card img {
        height: 330px;
    }

    .float-whatsapp {
        width: 56px;
        height: 56px;
        font-size: 27px;
    }
}


/* ===== Mobile polish update ===== */
@media (max-width: 720px) {
    body {
        background:
            radial-gradient(circle at 50% 0%, rgba(245,181,68,.20), transparent 28%),
            linear-gradient(180deg, #eef4ff 0%, #ffffff 55%, #f8fbff 100%);
    }

    .wrapper {
        width: min(100%, 94%);
        padding: 14px 0 24px;
    }

    .topbar {
        background: rgba(255,255,255,.82);
        border: 1px solid rgba(208,213,221,.72);
        border-radius: 20px;
        padding: 12px;
        backdrop-filter: blur(12px);
        margin-bottom: 12px;
    }

    .brand {
        width: 100%;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        flex: 0 0 auto;
    }

    .top-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .hero {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        border-radius: 24px;
        margin-bottom: 16px;
    }

    .teacher-card {
        order: -1;
        min-height: unset;
        padding: 10px;
        border-radius: 22px;
        max-width: 100%;
    }

    .teacher-card img {
        height: 255px;
        border-radius: 18px;
        object-position: top center;
    }

    .teacher-name {
        margin-top: 8px;
        padding: 12px;
        border-radius: 16px;
    }

    .teacher-name span {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 29px;
        line-height: 1.22;
        margin: 12px 0 8px;
        letter-spacing: 0;
    }

    .hero p {
        font-size: 15.5px;
        line-height: 1.8;
        margin-bottom: 12px;
    }

    .badge {
        font-size: 13px;
        padding: 8px 12px;
    }

    .hero-points {
        gap: 9px;
        margin: 14px 0;
    }

    .hero-point {
        padding: 12px;
        border-radius: 15px;
    }

    .hero-point strong {
        font-size: 16px;
    }

    .hero-point span {
        font-size: 12.5px;
    }

    .hero-cta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .trust-strip {
        gap: 10px;
        margin-bottom: 16px;
    }

    .trust-card {
        padding: 14px;
        border-radius: 18px;
    }

    .card {
        padding: 16px;
        border-radius: 22px;
    }

    .form-title {
        gap: 10px;
        margin-bottom: 15px;
    }

    .form-title h2 {
        font-size: 24px;
    }

    .form-title p {
        font-size: 14px;
    }

    .contact-box {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    input, select {
        min-height: 52px;
        font-size: 16px;
        border-radius: 14px;
        padding: 13px;
    }

    label {
        font-size: 14px;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .btn,
    button {
        min-height: 52px;
        width: 100%;
        padding: 13px 16px;
        border-radius: 14px;
        font-size: 16px;
    }

    .float-whatsapp {
        left: 14px;
        bottom: 14px;
        width: 54px;
        height: 54px;
        font-size: 25px;
    }
}

@media (max-width: 390px) {
    .hero h1 {
        font-size: 25px;
    }

    .teacher-card img {
        height: 225px;
    }

    .teacher-name span {
        font-size: 18px;
    }

    .brand {
        font-size: 14px;
    }
}
