:root {
    --red: #d94141;
    --red-dark: #b8202d;
    --red-soft: #fff0f0;
    --text: #241f21;
    --muted: #756d72;
    --white: #ffffff;
    --border: #f0d4d4;
    --shadow: 0 24px 70px rgba(163, 42, 49, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(217, 65, 65, 0.12), transparent 32rem),
        linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 24px 0;
}

.navbar {
    width: min(1180px, 100%);
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 210, 210, 0.85);
    border-radius: 26px;
    box-shadow: 0 14px 40px rgba(111, 38, 43, 0.08);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo {
    width: 46px;
    height: 46px;
    display: block;
}

.brand-name {
    font-weight: 800;
    color: var(--red-dark);
    white-space: nowrap;
}

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #443d40;
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--red-dark);
    background: var(--red-soft);
}

.login-btn,
.submit-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 14px 28px rgba(217, 65, 65, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn {
    padding: 12px 18px;
    border-radius: 999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(217, 65, 65, 0.34);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--red-soft);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--red-dark);
    border-radius: 99px;
}

main {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 70px;
}

.hero-card,
.admin-card {
    position: relative;
    overflow: hidden;
    gap: 34px;
    padding: clamp(24px, 5vw, 54px);
    border: 1px solid rgba(255, 220, 220, 0.92);
    border-radius: 38px;
    background:
        radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.95) 0 8%, transparent 24%),
        radial-gradient(circle at 84% 18%, rgba(255, 187, 187, 0.72), transparent 26%),
        radial-gradient(circle at 34% 86%, rgba(255, 225, 225, 0.92), transparent 28%),
        linear-gradient(135deg, #fffdfd 0%, #fff1f1 38%, #ffd7d7 100%);
    box-shadow: var(--shadow);
}

.hero-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
}

.admin-card::before,
.hero-card::before {
    content: "";
    position: absolute;
    inset: -35% 42% auto auto;
    width: 420px;
    height: 420px;
    background: conic-gradient(from 120deg, rgba(217, 65, 65, 0.22), rgba(255, 255, 255, 0.85), rgba(255, 170, 170, 0.48), rgba(217, 65, 65, 0.22));
    filter: blur(18px);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content,
.form-shell,
.admin-header,
.table-shell {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--red-dark);
    background: rgba(255, 255, 255, 0.68);
    font-weight: 700;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.25;
    letter-spacing: -1px;
}

.hero-text {
    max-width: 520px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 2;
}

.hero-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-stats div {
    min-width: 150px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    color: var(--red-dark);
    font-size: 1.2rem;
}

.hero-stats span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9rem;
}

.form-shell,
.table-shell {
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 60px rgba(73, 32, 35, 0.12);
    backdrop-filter: blur(20px);
}

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

.form-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    font-weight: 800;
}

.form-header h2 {
    margin-bottom: 4px;
    font-size: 1.35rem;
}

.form-header p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.94rem;
    line-height: 1.8;
}

.alert-success {
    color: #12613c;
    background: #eafaf1;
    border: 1px solid #bce9ce;
}

.alert-error {
    color: #9e1f2a;
    background: #fff0f1;
    border: 1px solid #ffc8cd;
}

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

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

.field-group span {
    color: #30292d;
    font-size: 0.94rem;
    font-weight: 700;
}

.field-group b {
    color: var(--red);
}

input,
select,
textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 13px 15px;
    outline: none;
    color: var(--text);
    background: #fffafa;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
    min-height: 132px;
    resize: vertical;
    line-height: 1.9;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(217, 65, 65, 0.72);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(217, 65, 65, 0.1);
}

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

.field-error {
    min-height: 18px;
    color: var(--red-dark);
    font-size: 0.82rem;
}

.field-group.has-error input,
.field-group.has-error select,
.field-group.has-error textarea {
    border-color: var(--red);
    background: #fff5f5;
}

.submit-btn {
    width: 100%;
    margin-top: 6px;
    padding: 15px 22px;
    border-radius: 18px;
    font-size: 1rem;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-title {
    margin-bottom: 12px;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
}

.admin-stats {
    margin-top: 0;
}

.table-wrap {
    overflow-x: auto;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.requests-table th,
.requests-table td {
    padding: 14px 12px;
    text-align: right;
    vertical-align: top;
    border-bottom: 1px solid #f2dede;
    font-size: 0.94rem;
}

.requests-table th {
    color: var(--red-dark);
    background: #fff4f4;
    font-weight: 800;
}

.requests-table tbody tr:hover {
    background: rgba(255, 240, 240, 0.55);
}

.car-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff0f0;
    color: var(--red-dark);
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.empty-state {
    padding: 26px 18px;
    border: 1px dashed #efc4c4;
    border-radius: 20px;
    text-align: center;
    color: var(--muted);
    background: #fff8f8;
}

.login-card {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 5vw, 44px);
    border: 1px solid rgba(255, 220, 220, 0.92);
    border-radius: 38px;
    background:
        radial-gradient(circle at 84% 18%, rgba(255, 187, 187, 0.72), transparent 26%),
        linear-gradient(135deg, #fffdfd 0%, #fff1f1 45%, #ffd7d7 100%);
    box-shadow: var(--shadow);
}

.login-shell {
    width: 100%;
}

.login-title {
    margin-bottom: 4px;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

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

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

.admin-user {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--red-dark);
    background: var(--red-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.secondary-btn {
    color: var(--red-dark);
    background: #fff0f0;
    box-shadow: none;
}

.secondary-btn:hover {
    box-shadow: 0 12px 24px rgba(217, 65, 65, 0.14);
}

@media (max-width: 920px) {
    .site-header {
        padding-inline: 14px;
    }

    .navbar {
        flex-wrap: wrap;
        border-radius: 22px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-panel {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

    .nav-panel.is-open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links a,
    .login-btn {
        justify-content: center;
        width: 100%;
    }

    .hero-card {
        grid-template-columns: 1fr;
        border-radius: 28px;
    }

    .admin-header {
        flex-direction: column;
    }

    .admin-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-user {
        text-align: center;
    }
}

@media (max-width: 620px) {
    main {
        width: min(100% - 20px, 1180px);
        margin-top: 20px;
        margin-bottom: 34px;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .hero-card,
    .admin-card,
    .login-card {
        padding: 18px;
    }

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

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-shell,
    .table-shell {
        padding: 18px;
        border-radius: 24px;
    }

    h1 {
        font-size: 2rem;
    }
}







































/* =======================
   LANDING PAGE
======================= */
.landing-page {
    min-height: 100vh;
}

.landing-main {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-section,
.brand-slider-section,
.service-highlight,
.cars-showcase {
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.hero-slider-card,
.hero-content-card,
.service-box,
.cars-slider,
.brand-strip,
.site-footer {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(217, 65, 65, 0.12);
    box-shadow: 0 18px 45px rgba(70, 17, 17, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-slider-card,
.hero-content-card {
    border-radius: 28px;
    overflow: hidden;
    min-height: 430px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content-card {
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(rgba(255,255,255,0.87), rgba(255,255,255,0.90)),
        url('../images/form-bg-car.jpg') center/cover no-repeat;
}

.hero-logo-box {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: linear-gradient(145deg, #fff6f6, #ffe3e3);
    border: 1px solid rgba(217, 65, 65, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 12px 28px rgba(217, 65, 65, 0.12);
}

.hero-logo-box img {
    max-width: 72%;
    max-height: 72%;
    object-fit: contain;
}

.landing-title {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 2.4vw, 2.7rem);
    line-height: 1.8;
    color: #341717;
    font-weight: 800;
}

.landing-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading.centered {
    text-align: center;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
    color: #3b1515;
}

.brand-strip {
    border-radius: 24px;
    overflow: hidden;
    padding: 16px 0;
    position: relative;
}

.brand-track {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    animation: brand-scroll 12s linear infinite;
}

.brand-item {
    width: 120px;
    min-width: 120px;
    height: 70px;
    background: #fff7f7;
    border: 1px solid rgba(217, 65, 65, 0.12);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: saturate(0.95) contrast(1.05);
}

@keyframes brand-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.service-box {
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    min-height: 400px;
}

.service-image {
    min-height: 100%;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-content {
    padding: 32px;
    background:
        linear-gradient(rgba(255,255,255,0.90), rgba(255,255,255,0.92)),
        url('../images/form-bg-car-2.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h2 {
    margin: 0 0 14px;
    color: #381414;
    font-size: clamp(1.5rem, 2.1vw, 2.2rem);
}

.service-content p {
    margin: 0 0 14px;
    color: #5b3636;
    line-height: 2.05;
}

.cars-slider {
    border-radius: 28px;
    overflow: hidden;
    min-height: 480px;
    position: relative;
}

.car-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.car-slide.active {
    opacity: 1;
    z-index: 2;
}

.car-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.car-slide-caption {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 18px 22px;
    background: linear-gradient(to top, rgba(35, 10, 10, 0.88), rgba(35, 10, 10, 0.10));
    color: #fff;
}

.car-slide-caption h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.car-slide-caption span {
    display: inline-block;
    margin-top: 6px;
    color: #ffdede;
    font-size: 0.98rem;
}

.cars-slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.slider-control {
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(217, 65, 65, 0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(217, 65, 65, 0.24);
}

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 28px;
    border-radius: 28px;
    padding: 30px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.footer-column h3 {
    margin: 0 0 16px;
    color: #3f1616;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li + li {
    margin-top: 10px;
}

.footer-links a {
    color: #6a3c3c;
    text-decoration: none;
    transition: color 0.2s ease, padding-right 0.2s ease;
}

.footer-links a:hover {
    color: var(--red-dark);
    padding-right: 6px;
}

.footer-center {
    text-align: center;
}

.footer-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 12px;
}

.trust-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-badges img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff7f7;
    border: 1px solid rgba(217, 65, 65, 0.10);
    padding: 8px;
}

@media (max-width: 992px) {
    .hero-grid,
    .service-box,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider-card,
    .hero-content-card {
        min-height: 340px;
    }

    .cars-slider,
    .car-slide img {
        min-height: 360px;
        height: 360px;
    }
}

@media (max-width: 768px) {
    .landing-main {
        width: min(100% - 20px, 1180px);
        gap: 20px;
    }

    .hero-content-card,
    .service-content,
    .site-footer {
        padding: 22px 18px;
    }

    .landing-title {
        line-height: 1.65;
    }

    .hero-logo-box {
        width: 96px;
        height: 96px;
        border-radius: 20px;
    }

    .brand-item {
        width: 100px;
        min-width: 100px;
        height: 60px;
    }

    .cars-slider,
    .car-slide img {
        min-height: 290px;
        height: 290px;
    }

    .car-slide-caption {
        padding: 14px 16px;
    }
}



