/* ===== LUXURY VELOURA / PURPLE THEME - Shared Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Login Page Matching Color Palette */
    --purple-deep: #581C87;
    --purple-dark: #6B46C1;
    --purple-main: #7C3AED;
    --purple-mid: #8B5CF6;
    --purple-light: #C084FC;
    --purple-bg: #F3E8FF;
    --purple-gradient: linear-gradient(135deg, #6B46C1 0%, #7C3AED 50%, #8B5CF6 100%);
    --purple-btn-gradient: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
    
    --v-bg-top: #C9A8F5;
    --v-bg-bottom: #B794F0;
    --bg-light: #F6F3FC;
    --card-bg: #FFFFFF;
    --card-border: rgba(139, 92, 246, 0.16);
    
    --text-dark: #1A0D30;
    --text-muted: #71628A;
    
    --green: #10B981;
    --red: #EF4444;
    --yellow: #F59E0B;
    
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-pill: 50px;
    
    --shadow: 0 10px 28px rgba(109, 40, 217, 0.08);
    --shadow-purple: 0 12px 32px rgba(124, 58, 237, 0.25);
    --safe-bottom: env(safe-area-inset-bottom, 20px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(at 15% 15%, rgba(139, 92, 246, 0.14) 0px, transparent 45%),
        radial-gradient(at 85% 85%, rgba(192, 132, 252, 0.12) 0px, transparent 45%),
        linear-gradient(45deg, rgba(124, 58, 237, 0.025) 25%, transparent 25%, transparent 75%, rgba(124, 58, 237, 0.025) 75%, rgba(124, 58, 237, 0.025));
    background-size: 100% 100%, 100% 100%, 36px 36px;
    color: var(--text-dark);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== PHONE FRAME ===== */
.phone-frame {
    max-width: 480px;
    margin: 0 auto;
    background: transparent;
    min-height: 100vh;
    position: relative;
    padding-bottom: calc(90px + var(--safe-bottom));
}

.page-content {
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 243, 252, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.page-header .back-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--card-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--purple-main);
    box-shadow: var(--shadow);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-header .back-btn:active {
    transform: scale(0.92);
}

.page-header .page-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.page-header .header-spacer {
    width: 38px;
}

/* ===== HEADER BAR ===== */
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    width: 100%;
    box-sizing: border-box;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    min-width: 0;
}

.brand-logo-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    max-width: 38px;
    max-height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
    display: block;
    flex-shrink: 0;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sms-chat-btn {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1.5px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-main);
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
    transition: all 0.2s ease;
}

.lang-pill {
    background: #ffffff;
    border: 1.5px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--purple-deep);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 0;
}

.card-purple {
    background: var(--purple-gradient);
    border: none;
    color: #fff;
    box-shadow: var(--shadow-purple);
    border-radius: var(--radius-lg);
}

/* ===== BUTTONS ===== */
.btn-purple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--purple-btn-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-purple);
    transition: all 0.2s ease;
}

.btn-purple:active {
    transform: scale(0.97);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--purple-main);
    border: 1.5px solid var(--purple-main);
    border-radius: var(--radius-pill);
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline:active {
    background: var(--purple-bg);
}

/* ===== BOTTOM NAVIGATION (VELOURA PILL STYLE) ===== */
.bottom-nav, .bottom-nav-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 480px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(124, 58, 237, 0.12) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) 10px !important;
    z-index: 1000 !important;
    box-shadow: 0 -10px 30px rgba(109, 40, 217, 0.08) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.bottom-nav .nav-pill {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav .nav-link,
.bottom-nav .nav-tab-item,
.bottom-nav-bar .nav-tab-item,
.bottom-nav-bar .nav-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    text-decoration: none !important;
    color: #9CA3AF !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
    flex: 1 !important;
    padding: 4px 0 !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    border: none !important;
}

.bottom-nav .nav-link i,
.bottom-nav .nav-tab-item i,
.bottom-nav-bar .nav-tab-item i,
.bottom-nav-bar .nav-link i {
    font-size: 19px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

.bottom-nav .nav-link.active,
.bottom-nav .nav-tab-item.active,
.bottom-nav-bar .nav-tab-item.active,
.bottom-nav-bar .nav-link.active {
    color: var(--purple-main) !important;
}

.bottom-nav .nav-link.active i,
.bottom-nav .nav-tab-item.active i,
.bottom-nav-bar .nav-tab-item.active i,
.bottom-nav-bar .nav-link.active i {
    color: var(--purple-main) !important;
    transform: translateY(-2px) !important;
    filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.4)) !important;
}

.nav-fab {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--purple-btn-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
    text-decoration: none;
    transform: translateY(-8px);
    transition: transform 0.2s ease;
}

.nav-fab:active {
    transform: translateY(-8px) scale(0.92);
}
