body {
    margin: 0;
    background: #0d0d0f;
    font-family: Arial, sans-serif;
    color: #e5e5e5;
}

a {
    text-decoration: none;
}

.nav-wrap {
    width: 100%;
    background: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: #0c4da2;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 0;
    display: block;
    transition: 0.2s;
}

.nav-links li a:hover {
    color: #074680;
}

.nav-links li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 0.5rem 0;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-links li:hover ul {
    display: block;
}

.nav-links li ul li a {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #0c4da2;
}

.nav-links li ul li a:hover {
    color: #074680;
}

.nav-search {
    margin-left: 1rem;
    cursor: pointer;
    color: #0c4da2;
    font-size: 1.2rem;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    border: none;
    background: transparent;
    cursor: pointer;
    gap: 5px;
}

.nav-hamburger span {
    width: 28px;
    height: 3px;
    background: #0c4da2;
    border-radius: 3px;
}

.hero {
    position: relative;
    height: 95vh;
    background: url('../img/homes.png') center/cover no-repeat;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.88),
        rgba(0,0,0,0.58),
        rgba(0,0,0,0.92)
    );
    z-index: 1;
}

.hero-left,
.hero-right {
    z-index: 2;
}

.hero-btn {
    width: 250px;
    padding: 1.1rem 1.3rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    display: block;
    margin-bottom: 1.3rem;
    cursor: pointer;
    transition: 0.25s ease;
    border: none;
}

.hero-blue {
    background: linear-gradient(135deg, #0a6cff, #0044c2);
    color: #fff;
}

.hero-blue:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(10,108,255,0.5);
}

.hero-gold {
    background: linear-gradient(135deg, #e0b017, #b98903);
    color: #000;
}

.hero-gold:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(212,160,6,0.45);
}

.hero-right h1 {
    color: #fff;
    font-size: 4.6rem;
    font-weight: 900;
    line-height: 1.05;
    text-shadow: 0 0 22px rgba(0,0,0,0.8);
    letter-spacing: 1px;
}

.content-section {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: auto;
}

.content-section h2 {
    font-size: 2.7rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1.15rem;
    text-align: center;
    max-width: 900px;
    margin: auto;
    color: #bdbdbd;
}

.card-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.card {
    background: linear-gradient(145deg, #18181e, #121217);
    padding: 2.3rem;
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(0,0,0,0.45);
    transition: 0.35s ease;
    border: 1px solid rgba(255,255,255,0.04);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 55px rgba(0,0,0,0.65);
}

.card h3 {
    color: #fff;
    font-size: 1.55rem;
    margin-bottom: 1rem;
}

.card p {
    color: #b8b8b8;
    font-size: 1rem;
    line-height: 1.5;
}

#referralToggle {
    margin-top: 2.5rem;
    letter-spacing: 1px;
    box-shadow: 0 0 30px rgba(10,108,255,0.45);
}

#referralFormWrapper {
    animation: slideFade 0.45s ease forwards;
}

@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#referralFormWrapper input,
#referralFormWrapper textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0f0f14;
    color: #fff;
    font-size: 0.95rem;
    transition: 0.2s;
}

#referralFormWrapper input:focus,
#referralFormWrapper textarea:focus {
    outline: none;
    border-color: #0a6cff;
    box-shadow: 0 0 0 2px rgba(10,108,255,0.25);
}

.footer {
    background: #111114;
    padding: 3rem 0 2rem;
    color: #b5b5b5;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 0 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #bdbdbd;
}

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

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #bdbdbd;
    transition: 0.2s;
    font-size: 0.95rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #222;
    font-size: 0.9rem;
    color: #6e6e6e;
}

form {
    width: 100%;
}

form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #e5e5e5;
    letter-spacing: 0.2px;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    margin-bottom: 1.2rem;

    background: #0f0f14;
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;

    font-size: 0.95rem;
    font-family: inherit;

    transition: 
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

form input::placeholder,
form textarea::placeholder {
    color: #8e8e8e;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #0a6cff;
    background: #111118;
    box-shadow: 0 0 0 2px rgba(10, 108, 255, 0.25);
}

form input[readonly],
form input:disabled,
form textarea[readonly],
form textarea:disabled,
form select:disabled {
    background: #14141a;
    color: #9a9a9a;
    cursor: not-allowed;
}

form select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #bdbdbd 50%),
        linear-gradient(135deg, #bdbdbd 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 55%,
        calc(100% - 12px) 55%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

form input[type="file"] {
    padding: 0.6rem;
    background: #0f0f14;
    cursor: pointer;
}

form input:invalid,
form textarea:invalid,
form select:invalid {
    border-color: rgba(255, 107, 107, 0.6);
}

form input:valid,
form textarea:valid,
form select:valid {
    border-color: rgba(76, 209, 55, 0.35);
}

.form-hint {
    font-size: 0.8rem;
    color: #9e9e9e;
    margin-top: -0.7rem;
    margin-bottom: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.form-check input {
    width: auto;
    margin: 0;
}

.form-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.form-success {
    color: #4cd137;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

form .hero-btn {
    margin-top: 0.5rem;
}

.nav-greeting {
    color: #0c4da2;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.request-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.request-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    font-size: 0.95rem;
    word-break: break-word;
}

.request-meta a {
    word-break: break-all;
}

.request-message {
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid #0c4da2;
    font-size: 0.95rem;
    overflow-wrap: break-word;
}

.request-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
}

.request-actions form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.request-actions input,
.request-actions select,
.request-actions textarea,
.request-actions button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.status-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-new {
    background: #444;
}

.status-in-progress {
    background: #0c4da2;
}

.status-completed {
    background: #2e8b57;
}

.admin-container {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
}

.admin-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-panel {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.small-panel {
    min-height: 300px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.panel-scroll {
    overflow-y: auto;
}

.limited-scroll {
    max-height: 450px;
}

.request-row {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.row-main {
    display: flex;
    justify-content: space-between;
}

.row-meta {
    font-size: .85rem;
    opacity: .75;
    margin-top: .3rem;
}

.mini-row {
    padding: .75rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 992px) {

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-hamburger span {
        width: 28px;
        height: 3px;
        background: #000;
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 1rem 0;
        display: none;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > li {
        width: 100%;
        padding: 0.5rem 1rem;
    }

    .nav-links li a {
        width: 100%;
        display: block;
        padding: 0.5rem 0;
    }

    .nav-links li ul {
        display: none;
        flex-direction: column;
        padding-left: 1rem;
        background: #f7f7f7;
    }

    .nav-links li ul.open {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding: 3rem 1rem;
        height: auto;
    }

    .hero-right h1 {
        font-size: 2.8rem;
        margin-top: 2rem;
    }

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