* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

:root {
    --primary-orange: #d25e00;
    --hover-orange: #b84a00;
    --bg-light: #f8fafc;
    --card-bg: #f2f5f9;
    --text-main: #1a1a1a;
    --text-muted: #949494;
    --border-color: #e2e8f0;
    --icon-blue: #283c80;
    --icon-bg: #eaefff;
}

body {
    background-color: #f8fafc;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: #ffffff;
    box-shadow: 0px 0px 2px 0px rgba(94, 92, 92, 0.55);

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.logo {
    width: 200px;
    height: 79px;
}

.header-icons {
    display: flex;
    gap: 60px;
    color: var(--icon-blue);
    position: relative;
}

.header-icons svg {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header-icons svg:hover {
    transform: scale(1.1);
}

.header-controls {
    text-align: right;
    font-family: sans-serif;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    margin-top: 30px;
}

/* MAIN CONTENT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 110px;
    padding: 80px 40px;
    background-color: rgb(255, 255, 255, 1);
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 40px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 20px;
    color: rgba(22, 22, 22, 1);
    font-weight: 400;
}

/* CONTACT CARDS SECTION */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.contact-card {
    background-color: rgba(241, 245, 249, 1);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.25);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: #283c80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
}

.contact-icon i {
    font-size: 28px;
}

.contact-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(94, 99, 105, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.contact-info {
    font-size: 28px;
    font-weight: 600;
    color: #283c80;
    margin-bottom: 10px;
}

.contact-details {
    font-size: 16px;
    color: rgba(94, 99, 105, 1);
    font-weight: 500;
}

.notifications-popover {
    background: rgba(241, 245, 249, 1);
    border-radius: 12px;
    width: min(320px, calc(100vw - 24px));
    box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: fixed;
    display: none !important;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding-top: 8px !important;
}

.notifications-popover.active {
    display: block !important;
    visibility: visible;
    opacity: 1;
}

.notifications-header {
    padding: 12px;
    font-size: 14px;
    color: var(--text-muted);
    background: rgba(241, 245, 249, 1);
}

.notifications-list {
    max-height: min(400px, 50vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    margin: 0px 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: white;
    border: 1px solid #eef0f7;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-content {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
}

.text-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.notification-text {
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: 10px;
    color: #8892a0;
    white-space: nowrap;
}

.flag-icon {
    margin-top: 2px;
}

.notifications-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: rgba(241, 245, 249, 1);
}

.notifications-delete-all {
    display: none;
}

.notifications-manage {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    padding: 4px 0;
    font-family: "Montserrat", sans-serif;
}

.notifications-manage:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.notification-item:hover {
    background-color: rgba(211, 211, 211, 0.515);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.notification-icon svg {
    width: 14px;
    height: 14px;
    color: var(--icon-blue);
}

.notification-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-flag {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.notifications-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

.notifications-delete {
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.notifications-manage {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.profile-popover {
    background: rgba(241, 245, 249, 1);
    border-radius: 16px;
    padding: 16px;
    width: min(350px, calc(100vw - 24px));
    box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: fixed;
    display: none !important;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-popover.active {
    display: block !important;
    visibility: visible;
    opacity: 1;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e1e8ff 0%, #e1e8ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
    color: var(--icon-blue);
    font-weight: 500;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.profile-phone {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.profile-email {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
    word-break: break-all;
}

.profile-address {
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    margin-left: 0;
    padding: 0 8px;
    max-width: 100%;
}

.profile-address span {
    padding-top: 2px;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    min-width: 0;
}

.profile-address svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.profile-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

.profile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px 13px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-main);
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    min-height: 44px;
}

.profile-menu-item:hover {
    background-color: rgba(211, 211, 211, 0.515);
    border-radius: 6px;
}

.profile-menu-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--icon-blue);
}

/* --- Footer --- */
footer {
    background: rgba(241, 245, 249, 1);
    border-top: 1px solid var(--border-color);
    padding: 40px 60px;
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.footer-icons {
    display: flex;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.footer-left p {
    font-size: 12px;
    color: rgba(71, 85, 105, 1);
    margin-top: 10px;
    padding-left: 16px;
    font-weight: 500;
}
.footer-links {
    display: flex;
    gap: 60px;
    font-size: 13px;
    font-weight: 500;
}
.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
}

/* logout */
.auth-logout-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
}
.auth-logout-container {
    background-color: #f1f5f9;
    width: min(460px, calc(100vw - 32px));
    padding: 36px 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.auth-logout-icon-circle {
    background-color: #e0e7ff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    flex-shrink: 0;
}
.auth-logout-icon-circle i {
    color: #283c80;
    font-size: 28px;
}
.auth-logout-title {
    color: #111;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}
.auth-logout-text {
    color: #5e6369;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 24px;
}
.auth-logout-actions {
    display: flex;
    gap: 12px;
}
.auth-btn-cancel,
.auth-btn-confirm {
    flex: 1;
    padding: 13px 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.25s ease;
    font-family: "Montserrat", sans-serif;
    min-height: 48px;
}
.auth-btn-cancel {
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
}
.auth-btn-confirm {
    background: #d25e00;
    color: #ffffff;
}
.auth-btn-confirm:hover {
    background-color: #b84a00;
}
.auth-btn-cancel:hover {
    background-color: #e2e8f0;
}
.auth-logout-backdrop.is-visible {
    display: flex;
}

/* =============================================
         RESPONSIVE BREAKPOINTS
         ============================================= */

/* Tablet landscape */
@media (max-width: 1024px) {
    header {
        padding: 15px 30px;
    }
    .logo {
        width: 150px;
        height: 59px;
    }
    .header-icons {
        gap: 30px;
    }
    .container {
        padding: 60px 30px;
        margin-top: 100px;
    }
    .contact-cards {
        gap: 24px;
    }
    footer {
        padding: 30px 30px;
    }
    .footer-links {
        gap: 30px;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    header {
        padding: 12px 20px;
    }
    .logo {
        width: 130px;
        height: 51px;
    }
    .header-icons {
        gap: 20px;
    }
    .header-icons svg {
        width: 22px;
        height: 22px;
    }
    .container {
        padding: 40px 20px;
        margin-top: 90px;
    }
    .page-header {
        margin-bottom: 40px;
    }
    .page-header h1 {
        font-size: 30px;
        text-align: start;
    }
    .page-header p {
        font-size: 16px;
        text-align: start;
    }
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 50px;
    }
    .contact-card {
        padding: 30px 24px;
    }
    .contact-info {
        font-size: 22px;
    }
    footer {
        flex-direction: column;
        gap: 24px;
        padding: 30px 20px;
        align-items: center;
        text-align: center;
    }
    .footer-icons {
        position: static;
        transform: none;
    }
    .footer-left p {
        padding-left: 0;
        text-align: center;
    }
    .footer-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    /* Popovers — widths now fluid via min() in base rules */
    .profile-popover {
        padding: 14px;
        border-radius: 14px;
    }

    .profile-name {
        font-size: 16px;
    }

    .profile-phone,
    .profile-email {
        font-size: 13px;
    }

    .profile-address span {
        font-size: 13px;
    }

    .profile-menu-item {
        font-size: 14px;
        padding: 11px 14px 11px 8px;
    }

    .notifications-popover {
        border-radius: 10px;
    }

    .notification-text {
        font-size: 13px;
    }

    .notifications-footer {
        padding: 12px 16px;
    }

    .notifications-manage {
        font-size: 13px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    header {
        padding: 10px 16px;
    }
    .logo {
        width: 110px;
        height: 43px;
    }
    .header-icons {
        gap: 16px;
    }
    .header-icons svg {
        width: 20px;
        height: 20px;
    }
    .container {
        padding: 30px 16px;
        margin-top: 84px;
    }
    .page-header h1 {
        font-size: 24px;
    }
    .page-header p {
        font-size: 14px;
    }
    .contact-card {
        padding: 24px 16px;
    }
    .contact-info {
        font-size: 20px;
    }
    .contact-details {
        font-size: 14px;
    }
    footer {
        padding: 20px 16px;
        gap: 16px;
    }
    .footer-links {
        gap: 14px;
        font-size: 12px;
    }

    /* Popovers — small phones */
    .profile-popover {
        padding: 12px;
        border-radius: 12px;
    }

    .profile-avatar {
        width: 64px;
        height: 64px;
        font-size: 26px;
        margin-bottom: 10px;
    }

    .profile-name {
        font-size: 15px;
    }

    .profile-phone,
    .profile-email,
    .profile-address span {
        font-size: 12px;
    }

    .profile-menu-item {
        font-size: 13px;
        padding: 10px 12px 10px 8px;
        min-height: 42px;
    }

    .profile-menu-item svg {
        width: 17px;
        height: 17px;
    }

    .notifications-list {
        max-height: 40vh;
    }

    .notification-item {
        padding: 10px 8px;
        gap: 10px;
    }

    .notification-text {
        font-size: 12px;
    }

    .notification-time {
        font-size: 10px;
    }

    .notifications-footer {
        padding: 10px 14px;
    }

    .notifications-manage {
        font-size: 12px;
    }

    /* Logout modal — small phones */
    .auth-logout-container {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .auth-logout-icon-circle {
        width: 50px;
        height: 50px;
        margin-bottom: 14px;
    }

    .auth-logout-icon-circle i {
        font-size: 24px;
    }

    .auth-logout-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .auth-logout-text {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .auth-logout-actions {
        gap: 8px;
    }

    .auth-btn-cancel,
    .auth-btn-confirm {
        padding: 12px 8px;
        font-size: 13px;
        border-radius: 10px;
        min-height: 44px;
    }
}



/* Make contact-info look clickable */
.contact-info {
    cursor: pointer;
    transition: opacity 0.2s;
}

.contact-info:hover {
    opacity: 0.8;
}

/* Email link */
.email-contact {
    color: #1a3a5c;
    text-decoration: none;
    display: block;
}

.email-contact:hover {
    opacity: 0.8;
    text-decoration: underline;
}
