﻿/* --- OPEN BUTTON --- */
.modal-hotline-open-btn {
    padding: 16px 36px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

    .modal-hotline-open-btn:hover {
        transform: translateY(-3px) scale(1.04);
        box-shadow: 0 12px 40px rgba(249, 115, 22, 0.55);
    }

.btn-icon {
    font-size: 22px;
}

/* --- MODAL OVERLAY --- */
.modal-hotline-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

    .modal-hotline-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* --- MODAL CONTAINER --- */
.modal-hotline-container {
    width: 95%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 24px;
    background: linear-gradient(180deg, #e8f0fe 0%, #dbeafe 30%, #f0f4ff 60%, #e0e8ff 100%);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    transform: translateY(40px) scale(0.93);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding-bottom: 0;
}

.modal-hotline-overlay.active .modal-hotline-container {
    transform: translateY(0) scale(1);
}

/* Scrollbar */
.modal-hotline-container::-webkit-scrollbar {
    width: 6px;
}

.modal-hotline-container::-webkit-scrollbar-track {
    background: transparent;
}

.modal-hotline-container::-webkit-scrollbar-thumb {
    background: rgba(100, 120, 200, 0.3);
    border-radius: 10px;
}

/* --- CLOSE BTN --- */
.modal-hotline-close {
    position: sticky;
    top: 10px;
    float: right;
    margin-right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #555;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
}

    .modal-hotline-close:hover {
        background: #ef4444;
        color: #fff;
        transform: rotate(90deg);
    }

/* ============================================
   HEADER
   ============================================ */
.modal-hotline-header {
    padding: 24px 24px 16px;
    text-align: center;
    position: relative;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 4px;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-hotline {
    width: 96px;
    height: 96px;
    border-radius: 50%;
}

/* Title */
.header-title {
    text-align: center;
}

.hotline-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    padding: 3px 18px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.header-title h1 {
    font-size: 22px;
    font-weight: 900;
    color: #1e2a5e;
    line-height: 1.15;
    letter-spacing: 1px;
}

.tagline {
    font-family: 'Dancing Script', cursive;
    font-size: 21px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-top: 2px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hotline-global {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 40px;
}

/* ============================================
   CONTACT CARDS
   ============================================ */
.cards-wrapper {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 245, 255, 0.85));
    border-radius: 16px;
    padding: 12px 14px;
    position: relative;
    border: 1px solid rgba(200, 215, 255, 0.5);
    box-shadow: 0 3px 15px rgba(100, 130, 200, 0.1);
    transition: all 0.3s ease;
    animation: cardSlideIn 0.5s ease both;
}

    .contact-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .contact-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .contact-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .contact-card:nth-child(4) {
        animation-delay: 0.2s;
    }

    .contact-card:nth-child(5) {
        animation-delay: 0.25s;
    }

    .contact-card:nth-child(6) {
        animation-delay: 0.3s;
    }

    .contact-card:nth-child(7) {
        animation-delay: 0.35s;
    }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 130, 200, 0.2);
    border-color: var(--card-accent);
}

/* Number badge */
.card-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 70%, #fff));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 12px color-mix(in srgb, var(--card-accent) 40%, transparent);
}

    .card-number span {
        color: #fff;
        font-weight: 900;
        font-size: 15px;
    }

/* Avatar */
.card-avatar {
    flex-shrink: 0;
}

    .card-avatar img {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--card-accent);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

/* Info */
.card-info {
    flex: 1;
    min-width: 0;
}

.role-badge {
    display: inline-block;
    background: var(--badge-bg);
    color: #fff;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-info h3 {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    margin-top: 2px;
    margin-bottom: 0px;
    line-height: 1.2;
}

.motto {
    font-size: 9.5px;
    color: #64748b;
    margin-top: 1px;
    font-weight: 500;
}

/* Actions */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.phone-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff !important;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    transition: all 0.25s ease;
}

    .phone-btn:hover {
        transform: scale(1.06);
        box-shadow: 0 4px 14px rgba(34, 197, 94, 0.45);
    }

.phone-icon {
    font-size: 12px;
}

.zalo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0068ff, #0052cc);
    color: #fff !important;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 104, 255, 0.25);
    transition: all 0.25s ease;
}

    .zalo-btn:hover {
        transform: scale(1.06);
        box-shadow: 0 4px 14px rgba(0, 104, 255, 0.4);
    }

/* --- DISCORD BTN --- */
.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: #fff !important;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
    transition: all 0.25s ease;
}

    .discord-btn svg {
        width: 16px;
        height: 16px;
    }

    .discord-btn:hover {
        transform: scale(1.06);
        box-shadow: 0 4px 14px rgba(88, 101, 242, 0.5);
        background: linear-gradient(135deg, #6d78f7, #5865F2);
    }

/* ============================================
   DISCORD COMMUNITY
   ============================================ */
.discord-community {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 6px 16px 16px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(88, 101, 242, 0.06));
    border: 1.5px solid rgba(88, 101, 242, 0.3);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.5s ease both;
    animation-delay: 0.4s;
}

    .discord-community::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 90% 30%, rgba(88, 101, 242, 0.15), transparent 60%);
        pointer-events: none;
    }

.discord-icon-large {
    font-size: 32px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
}

.discord-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

    .discord-info h3 {
        font-size: 13px;
        font-weight: 800;
        color: #3b3f8a;
        margin-bottom: 2px;
    }

    .discord-info p {
        font-size: 10px;
        color: #64748b;
        font-weight: 500;
        line-height: 1.4;
    }

.discord-join-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

    .discord-join-btn:hover {
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
        background: linear-gradient(135deg, #6d78f7, #5865F2);
    }

    .discord-join-btn span {
        font-size: 14px;
    }

/* ============================================
   FOOTER
   ============================================ */
.modal-hotline-footer {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    padding: 20px 20px 14px;
    text-align: center;
    position: relative;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}

    .modal-hotline-footer::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08), transparent 60%);
    }

.footer-slogan {
    position: relative;
    z-index: 1;
}

.slogan-main {
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.slogan-script {
    font-family: 'Dancing Script', cursive;
    color: #fbbf24;
    font-size: 24px;
    margin-top: 2px;
}

.rocket-icon {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 36px;
    animation: rocketBounce 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes rocketBounce {

    0%, 100% {
        transform: translateY(0) rotate(-20deg);
    }

    50% {
        transform: translateY(-8px) rotate(-15deg);
    }
}

.footer-values {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.value-item {
    color: rgba(255, 255, 255, 0.85);
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.5px;
}

    .value-item span {
        font-size: 12px;
    }

/* ============================================
   RESPONSIVE - TABLET (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    .modal-hotline-container {
        width: 96%;
        max-width: 480px;
        max-height: 93vh;
    }

    .header-top {
        gap: 12px;
    }

    .contact-card {
        padding: 11px 12px;
        gap: 9px;
    }

    .card-number {
        width: 34px;
        height: 34px;
    }

        .card-number span {
            font-size: 13px;
        }

    .card-avatar img {
        width: 48px;
        height: 48px;
    }

    .discord-community {
        gap: 12px;
        padding: 14px 16px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .modal-hotline-container {
        width: 98%;
        max-height: 90vh;
        border-radius: 18px;
    }

    .modal-hotline-header {
        padding: 20px 16px 12px;
    }

    .header-top {
        flex-direction: column;
        gap: 8px;
    }

    .header-title h1 {
        font-size: 20px;
    }

    .header-headset {
        display: none;
    }

    /* Cards stack layout */
    .contact-card {
        flex-wrap: wrap;
        padding: 12px;
        gap: 8px;
    }

    .card-number {
        width: 30px;
        height: 30px;
    }

        .card-number span {
            font-size: 12px;
        }

    .card-avatar img {
        width: 44px;
        height: 44px;
    }

    .card-info {
        flex: 1;
        min-width: 120px;
    }

        .card-info h3 {
            font-size: 12px;
        }

    .motto {
        font-size: 9px;
    }

    .card-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 6px;
        margin-top: 4px;
        padding-top: 8px;
        border-top: 1px solid rgba(200, 215, 255, 0.4);
    }

    .phone-btn,
    .zalo-btn,
    .discord-btn {
        flex: 1;
        justify-content: center;
        padding: 7px 12px;
        font-size: 11px;
        min-width: 0;
    }

    .phone-btn {
        font-size: 8px;
    }

    /* Discord community */
    .discord-community {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 16px 14px;
        margin: 6px 12px 14px;
    }

    .discord-icon-large {
        width: 44px;
        height: 44px;
        font-size: 26px;
        border-radius: 12px;
    }

    .discord-info h3 {
        font-size: 12px;
    }

    .discord-join-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 12px;
    }

    /* Footer */
    .footer-values {
        gap: 10px;
    }

    .modal-hotline-footer {
        border-radius: 0 0 18px 18px;
        padding: 16px 14px 12px;
    }

    .slogan-main {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .slogan-script {
        font-size: 20px;
    }

    .rocket-icon {
        font-size: 28px;
        right: 12px;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (max-width: 360px)
   ============================================ */
@media (max-width: 360px) {
    .modal-hotline-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-hotline-header {
        padding: 16px 12px 10px;
    }

    .header-title h1 {
        font-size: 18px;
    }

    .hotline-badge {
        font-size: 12px;
        padding: 2px 14px;
    }

    .tagline {
        font-size: 10.5px;
        letter-spacing: 1px;
    }

    .cards-wrapper {
        padding: 0 10px 12px;
        gap: 8px;
    }

    .contact-card {
        padding: 10px;
        border-radius: 12px;
    }

    .card-avatar img {
        width: 38px;
        height: 38px;
        border-width: 2px;
    }

    .role-badge {
        font-size: 7px;
        padding: 4px 8px;
    }

    .card-info h3 {
        font-size: 11px;
    }

    .discord-community {
        margin: 4px 10px 12px;
        padding: 12px;
        border-radius: 12px;
    }

    .modal-hotline-footer {
        border-radius: 0;
        padding: 14px 10px 10px;
    }

    .footer-values {
        gap: 8px;
    }

    .value-item {
        font-size: 8px;
    }
}
