/* ========================================================
   VKETC MOBILE SUITE - DESIGN SYSTEM & MOBILE THEME
   Tailored for Mobile Devices & APK Environment
   ======================================================== */

:root {
    --v-primary: #e11d48;
    --v-primary-hover: #f43f5e;
    --v-primary-glow: rgba(225, 29, 72, 0.4);
    --v-gold: #f59e0b;
    --v-emerald: #10b981;
    --v-sky: #0ea5e9;
    --v-indigo: #6366f1;
    --v-dark-bg: #070913;
    --v-card-bg: rgba(15, 23, 42, 0.92);
    --v-border: rgba(255, 255, 255, 0.08);
    --v-text-main: #f8fafc;
    --v-text-muted: #94a3b8;
    --v-safe-top: env(safe-area-inset-top, 0px);
    --v-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* OFFLINE / ONLINE PERSISTENT BANNER */
#vketcNetworkBanner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

#vketcNetworkBanner.status-offline {
    display: flex;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
    border-bottom: 1.5px solid #f87171;
}

#vketcNetworkBanner.status-online-syncing {
    display: flex;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    border-bottom: 1.5px solid #34d399;
}

/* 15-MINUTE INACTIVITY WARNING DIALOG */
#vketcInactivityOverlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 15, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.inactivity-card {
    background: linear-gradient(165deg, rgba(23, 29, 48, 0.98) 0%, rgba(13, 17, 30, 0.98) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    border-radius: 26px;
    padding: 30px 24px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 35px rgba(245, 158, 11, 0.25);
    animation: vketcPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.inactivity-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--v-gold);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.inactivity-countdown {
    font-size: 36px;
    font-weight: 900;
    color: var(--v-gold);
    margin: 10px 0;
    font-variant-numeric: tabular-nums;
}

/* FLOATING QUICK HELP & SUPPORT BUTTON */
#vketcFloatingSupportBtn {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9990;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.5), 0 0 15px rgba(225, 29, 72, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

#vketcFloatingSupportBtn:hover, #vketcFloatingSupportBtn:active {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 14px 30px rgba(225, 29, 72, 0.7);
}

/* UNIVERSAL SUPPORT MODAL */
#vketcSupportModal {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 15, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.support-modal-card {
    background: linear-gradient(165deg, rgba(20, 27, 45, 0.98) 0%, rgba(11, 15, 26, 0.99) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 28px 22px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    animation: vketcPopIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

/* SUPPORT CHANNELS GRID */
.support-channels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0;
}

.channel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.channel-btn.whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(18, 140, 126, 0.25));
    border-color: rgba(37, 211, 102, 0.35);
    color: #25d366;
}

.channel-btn.whatsapp:hover {
    background: #25d366;
    color: #fff;
    transform: translateY(-2px);
}

.channel-btn.email {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.15), rgba(187, 34, 22, 0.25));
    border-color: rgba(234, 67, 53, 0.35);
    color: #ff6b6b;
}

.channel-btn.email:hover {
    background: #ea4335;
    color: #fff;
    transform: translateY(-2px);
}

.channel-icon {
    font-size: 26px;
}

/* MESSAGE TEMPLATE MODAL */
#vketcTemplateModal {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 15, 0.92);
    backdrop-filter: blur(16px);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.template-card {
    background: linear-gradient(165deg, rgba(22, 30, 50, 0.98) 0%, rgba(12, 17, 30, 0.99) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 26px 22px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    animation: vketcPopIn 0.3s ease;
    max-height: 88vh;
    overflow-y: auto;
}

/* ANIMATIONS */
@keyframes vketcPopIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes vketcGlowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(225, 29, 72, 0.3); }
    50% { box-shadow: 0 0 30px rgba(225, 29, 72, 0.65); }
}

/* APK DOWNLOAD BANNER */
.apk-download-bar {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 95, 70, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    text-align: left;
}

.apk-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.apk-bar-btn {
    background: #10b981;
    color: #fff;
    font-weight: 800;
    font-size: 11.5px;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s;
}

.apk-bar-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}
