﻿html,
body {
    margin: 0;
    padding: 0;
    font-family: Calibri, Arial, sans-serif;
    font-size: 12px;
    background: #07111f;
    color: #ffffff;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

.es-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(21, 111, 196, 0.35), transparent 32%), linear-gradient(135deg, #06101f 0%, #0d1728 55%, #101827 100%);
}

/* ============================================================
   Eye-Scout Professional Header / Banner
   ============================================================ */

.es-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 12px 48px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    background: rgba(5, 12, 24, 0.96);
    box-shadow: 0 14px 40px rgba(0,0,0,0.28);
    backdrop-filter: blur(14px);
}

    .es-header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #1f8fff 0%, #00c2ff 50%, #26d6a3 100%);
    }

.es-header-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.es-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    text-decoration: none;
}

    .es-brand:hover {
        text-decoration: none;
    }

/* Correct transparent banner logo */
.es-brand-banner-logo {
    display: block;
    width: auto;
    height: 74px;
    max-width: 390px;
    object-fit: contain;
}

/* Legacy logo classes kept safe in case any older markup still exists */
.es-logo,
.es-brand-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: auto;
    min-width: 0;
    max-width: none;
    flex: 0 0 auto;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.es-brand-logo-img {
    display: block;
    width: auto;
    height: 74px;
    max-width: 390px;
    object-fit: contain;
    padding: 0;
    margin: 0;
}

/* Optional brand text, only used if still present in markup */
.es-brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 12px;
    line-height: 1.15;
}

.es-brand-title {
    display: block;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.2px;
    color: #ffffff;
    line-height: 1.05;
    margin: 0;
}

.es-brand-subtitle {
    display: block;
    color: rgba(226, 239, 255, 0.74);
    margin-top: 3px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

.es-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

    .es-nav a,
    .es-btn,
    .es-btn-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        padding: 10px 16px;
        font-family: Calibri, Arial, sans-serif;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
        border: 1px solid rgba(255,255,255,0.14);
        cursor: pointer;
        transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .es-nav a {
        min-height: 36px;
        color: rgba(226, 239, 255, 0.86);
        background: transparent;
        border-color: transparent;
    }

        .es-nav a:hover {
            color: #ffffff;
            background: rgba(255,255,255,0.10);
            border-color: rgba(255,255,255,0.12);
            transform: translateY(-1px);
            text-decoration: none;
        }

        .es-nav a:focus,
        .es-btn:focus,
        .es-btn-secondary:focus {
            outline: 3px solid rgba(0, 194, 255, 0.28);
            outline-offset: 2px;
        }

        .es-btn,
        .es-nav .es-btn,
        .es-nav a.es-btn,
        .es-nav a.es-nav-cta {
            background: linear-gradient(135deg, #1f8fff, #00c2ff);
            color: #ffffff;
            border: none;
            box-shadow: 0 12px 28px rgba(0, 144, 255, 0.24);
        }

            .es-btn:hover,
            .es-nav .es-btn:hover,
            .es-nav a.es-btn:hover,
            .es-nav a.es-nav-cta:hover {
                color: #ffffff;
                background: linear-gradient(135deg, #177ee6, #00afdF);
                box-shadow: 0 14px 32px rgba(0, 144, 255, 0.32);
                transform: translateY(-1px);
            }

.es-btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

    .es-btn-secondary:hover {
        background: rgba(255,255,255,0.14);
    }

/* ============================================================
   Main Layout
   ============================================================ */

.es-main {
    padding: 48px;
    position: relative;
    z-index: 1;
}

.es-hero {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 42px;
    align-items: center;
}

.es-kicker {
    display: inline-block;
    border: 1px solid rgba(0, 194, 255, 0.3);
    background: rgba(0, 194, 255, 0.08);
    color: #7bdcff;
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.es-hero h1 {
    font-size: 56px;
    line-height: 1.02;
    margin: 0 0 20px 0;
    letter-spacing: -1.5px;
}

.es-hero p {
    color: #b9c7d9;
    font-size: 17px;
    line-height: 1.55;
    margin: 0 0 26px 0;
}

.es-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.es-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.35);
    padding: 28px;
}

.es-profile-preview {
    position: relative;
    min-height: 430px;
    overflow: hidden;
}

.es-profile-top {
    display: flex;
    align-items: center;
    gap: 18px;
}

.es-avatar {
    width: 86px;
    height: 86px;
    border-radius: 24px;
    background: linear-gradient(135deg, #20324d, #0e1b30);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
}

.es-profile-name {
    font-size: 25px;
    font-weight: 800;
}

.es-profile-role {
    color: #7bdcff;
    font-weight: 700;
    margin-top: 4px;
}

.es-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.es-stat {
    background: rgba(0,0,0,0.24);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    padding: 18px;
}

.es-stat-number {
    font-size: 28px;
    font-weight: 800;
}

.es-stat-label {
    color: #9fb1c8;
    margin-top: 4px;
}

.es-panel-list {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.es-panel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    padding: 16px;
}

.es-pill {
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(0, 194, 255, 0.11);
    color: #7bdcff;
    font-weight: 700;
}

/* ============================================================
   Forms
   ============================================================ */

.es-form-shell {
    max-width: 980px;
    margin: 0 auto;
}

.es-form-card {
    background: #ffffff;
    color: #122033;
    border-radius: 26px;
    padding: 30px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.28);
}

.es-form-title {
    margin: 0 0 8px 0;
    font-size: 30px;
    color: #122033;
}

.es-form-intro {
    color: #5c6a7c;
    margin-bottom: 24px;
    font-size: 15px;
}

.es-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.es-form-row {
    margin-bottom: 16px;
}

.es-form-row-full {
    grid-column: 1 / -1;
}

.es-label {
    display: block;
    font-weight: 800;
    margin-bottom: 7px;
    color: #1a2b43;
}

.es-input,
.es-select,
.es-textarea {
    width: 100%;
    border: 1px solid #cbd7e5;
    border-radius: 13px;
    padding: 12px 13px;
    font-family: Calibri, Arial, sans-serif;
    font-size: 12px;
    outline: none;
    background: #f8fbff;
}

.es-textarea {
    min-height: 90px;
    resize: vertical;
}

    .es-input:focus,
    .es-select:focus,
    .es-textarea:focus {
        border-color: #1f8fff;
        box-shadow: 0 0 0 3px rgba(31, 143, 255, 0.12);
    }

.es-message {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 700;
}

.es-message-error {
    background: #fff1f0;
    color: #a8071a;
    border: 1px solid #ffccc7;
}

.es-message-success {
    background: #f6ffed;
    color: #237804;
    border: 1px solid #b7eb8f;
}

.es-footer {
    padding: 24px 48px;
    color: #7f91aa;
    text-align: center;
}

/* ============================================================
   Profile Layout
   ============================================================ */

.es-profile-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 24px;
    align-items: start;
}

.es-profile-main-card,
.es-profile-side-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.35);
    padding: 28px;
}

.es-profile-hero {
    display: flex;
    gap: 26px;
    align-items: center;
}

.es-profile-photo-wrap {
    width: 170px;
    height: 210px;
    flex: 0 0 170px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.14);
}

.es-profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.es-profile-summary h1 {
    font-size: 46px;
    line-height: 1.02;
    margin: 8px 0 12px 0;
    letter-spacing: -1px;
}

.es-profile-summary p {
    margin: 0;
    color: #b9c7d9;
    font-size: 16px;
    line-height: 1.5;
}

.es-profile-kicker {
    display: inline-block;
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(0, 194, 255, 0.11);
    color: #7bdcff;
    font-weight: 800;
}

.es-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

    .es-profile-tags span {
        display: inline-block;
        border-radius: 999px;
        padding: 8px 12px;
        background: rgba(255,255,255,0.08);
        color: #d8e5f5;
        border: 1px solid rgba(255,255,255,0.11);
        font-weight: 700;
    }

.es-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.es-profile-stat {
    background: rgba(0,0,0,0.24);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 22px;
    padding: 22px;
}

.es-profile-stat-number {
    font-size: 36px;
    font-weight: 900;
}

.es-profile-stat-label {
    color: #9fb1c8;
    margin-top: 5px;
    font-weight: 700;
}

.es-profile-section {
    margin-top: 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 22px;
    padding: 22px;
}

    .es-profile-section h2,
    .es-profile-side-card h2 {
        margin-top: 0;
        color: #ffffff;
    }

    .es-profile-section p {
        color: #c4d0df;
        line-height: 1.6;
        font-size: 15px;
    }

.es-profile-action-list {
    display: grid;
    gap: 12px;
}

.es-profile-action {
    display: block;
    border-radius: 16px;
    padding: 15px 16px;
    background: rgba(0, 194, 255, 0.10);
    color: #7bdcff;
    border: 1px solid rgba(0, 194, 255, 0.20);
    font-weight: 800;
}

    .es-profile-action:hover {
        background: rgba(0, 194, 255, 0.17);
    }

.es-profile-info-box {
    margin-top: 22px;
    border-radius: 18px;
    padding: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.10);
}

    .es-profile-info-box p {
        color: #b9c7d9;
        margin-bottom: 0;
        line-height: 1.5;
    }

/* ============================================================
   Eye-Scout Modal Overlay
   ============================================================ */

body.es-modal-open {
    overflow: hidden !important;
}

.es-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 999999 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    background: rgba(3, 8, 18, 0.78);
    backdrop-filter: blur(8px);
    align-items: center !important;
    justify-content: center !important;
    padding: 24px;
}

.es-modal-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    color: #122033;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 30px 100px rgba(0,0,0,0.45);
    text-align: center;
    animation: esModalIn 0.18s ease-out;
}

.es-modal-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
}

.es-modal-icon-success {
    background: #f6ffed;
    color: #237804;
    border: 1px solid #b7eb8f;
}

.es-modal-icon-error {
    background: #fff1f0;
    color: #a8071a;
    border: 1px solid #ffccc7;
}

.es-modal-icon-warning {
    background: #fffbe6;
    color: #ad6800;
    border: 1px solid #ffe58f;
}

.es-modal-icon-question {
    background: #e6f7ff;
    color: #096dd9;
    border: 1px solid #91d5ff;
}

.es-modal-title {
    margin: 0 0 12px 0;
    font-size: 28px;
    color: #122033;
}

.es-modal-message {
    margin: 0 0 24px 0;
    color: #526176;
    font-size: 15px;
    line-height: 1.55;
}

.es-modal-button-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

@keyframes esModalIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   Eye-Scout Media Management
   ============================================================ */

.es-media-layout {
    max-width: 1180px;
    margin: 0 auto;
}

.es-media-main-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.35);
    padding: 28px;
}

.es-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 24px;
}

    .es-page-heading h1 {
        font-size: 42px;
        line-height: 1.05;
        margin: 8px 0 10px 0;
    }

    .es-page-heading p {
        margin: 0;
        color: #b9c7d9;
        font-size: 15px;
        line-height: 1.5;
    }

.es-upload-panel,
.es-media-section {
    margin-top: 24px;
    background: #ffffff;
    color: #122033;
    border-radius: 24px;
    padding: 24px;
}

    .es-upload-panel h2,
    .es-media-section h2 {
        margin-top: 0;
        color: #122033;
    }

.es-empty-panel {
    padding: 18px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #d9e5f2;
    color: #526176;
    font-weight: 700;
}

.es-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.es-image-card {
    border: 1px solid #d9e5f2;
    background: #f8fbff;
    border-radius: 20px;
    overflow: hidden;
}

.es-image-frame {
    width: 100%;
    height: 210px;
    background: #eaf1f8;
    overflow: hidden;
}

    .es-image-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.es-image-body {
    padding: 16px;
}

    .es-image-body p {
        margin: 0 0 10px 0;
        color: #26364a;
        line-height: 1.45;
    }

.es-image-date {
    display: block;
    color: #6e7d90;
    margin-bottom: 12px;
    font-weight: 700;
}

.es-delete-link {
    display: inline-block;
    border-radius: 999px;
    padding: 8px 13px;
    background: #fff1f0;
    color: #a8071a;
    border: 1px solid #ffccc7;
    font-weight: 800;
}

/* ============================================================
   Eye-Scout Video Management
   ============================================================ */

.es-help-text {
    margin-top: 8px;
    color: #6e7d90;
    font-weight: 700;
}

.es-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.es-video-card {
    border: 1px solid #d9e5f2;
    background: #f8fbff;
    border-radius: 20px;
    overflow: hidden;
}

.es-video-frame {
    width: 100%;
    background: #07111f;
    overflow: hidden;
}

    .es-video-frame video {
        width: 100%;
        height: 280px;
        display: block;
        background: #07111f;
    }

.es-video-body {
    padding: 16px;
}

    .es-video-body p {
        margin: 0 0 10px 0;
        color: #26364a;
        line-height: 1.45;
    }

.es-video-date {
    display: block;
    color: #6e7d90;
    margin-bottom: 12px;
    font-weight: 700;
}

/* ============================================================
   Eye-Scout Testimonials
   ============================================================ */

.es-testimonial-list {
    display: grid;
    gap: 18px;
}

.es-testimonial-card {
    border: 1px solid #d9e5f2;
    background: #f8fbff;
    border-radius: 20px;
    padding: 20px;
}

.es-testimonial-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 14px;
}

    .es-testimonial-top h3 {
        margin: 0 0 4px 0;
        color: #122033;
        font-size: 21px;
    }

    .es-testimonial-top span {
        color: #637286;
        font-weight: 700;
    }

.es-testimonial-date {
    color: #6e7d90;
    font-weight: 800;
    white-space: nowrap;
}

.es-testimonial-card p {
    margin: 0 0 16px 0;
    color: #26364a;
    line-height: 1.55;
    font-size: 15px;
}

/* ============================================================
   Eye-Scout Edit Profile
   ============================================================ */

.es-edit-profile-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.es-current-profile-image-wrap {
    width: 100%;
    max-width: 260px;
    height: 320px;
    margin-bottom: 20px;
    border-radius: 24px;
    overflow: hidden;
    background: #eaf1f8;
    border: 1px solid #d9e5f2;
}

.es-current-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Better checkbox alignment on forms */
.es-form-row input[type="checkbox"] {
    margin-right: 8px;
    transform: translateY(1px);
}

/* ============================================================
   Responsive Layout
   ============================================================ */

@media (max-width: 1100px) {
    .es-header {
        padding: 12px 28px;
    }

    .es-brand-banner-logo,
    .es-brand-logo-img {
        height: 64px;
        max-width: 330px;
    }

    .es-brand-subtitle {
        white-space: normal;
    }

    .es-nav a,
    .es-btn,
    .es-btn-secondary {
        padding: 9px 13px;
    }
}

@media (max-width: 950px) {
    .es-header {
        padding: 14px 22px;
        flex-direction: column;
        align-items: flex-start;
    }

    .es-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .es-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .es-main {
        padding: 28px 20px;
    }

    .es-hero {
        grid-template-columns: 1fr;
    }

        .es-hero h1 {
            font-size: 38px;
        }

    .es-form-grid {
        grid-template-columns: 1fr;
    }

    .es-profile-layout {
        grid-template-columns: 1fr;
    }

    .es-profile-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .es-profile-stats {
        grid-template-columns: 1fr;
    }

    .es-profile-summary h1 {
        font-size: 36px;
    }

    .es-page-heading {
        flex-direction: column;
    }

    .es-image-grid {
        grid-template-columns: 1fr;
    }

    .es-video-grid {
        grid-template-columns: 1fr;
    }

    .es-video-frame video {
        height: 220px;
    }

    .es-edit-profile-grid {
        grid-template-columns: 1fr;
    }

    .es-current-profile-image-wrap {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .es-header {
        padding: 12px 18px;
    }

    .es-brand-banner-logo,
    .es-brand-logo-img {
        height: 52px;
        max-width: 260px;
    }

    .es-brand-title {
        font-size: 18px;
    }

    .es-brand-subtitle {
        font-size: 11px;
    }

    .es-nav {
        gap: 5px;
    }

        .es-nav a,
        .es-btn,
        .es-btn-secondary {
            min-height: 32px;
            padding: 7px 10px;
            font-size: 12px;
        }

    .es-main {
        padding: 22px 14px;
    }

    .es-hero h1 {
        font-size: 32px;
    }

    .es-page-heading h1 {
        font-size: 32px;
    }

    .es-form-card,
    .es-card,
    .es-profile-main-card,
    .es-profile-side-card,
    .es-media-main-card {
        padding: 22px;
        border-radius: 22px;
    }

    .es-modal-card {
        padding: 26px;
        border-radius: 22px;
    }
}
