:root {
    --bg-dark: #121212;
    --bg-card: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-red: #d32f2f;
    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #000;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 430px;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #121212 radial-gradient(circle at top, #1e1e1e 0%, #121212 70%);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.app-container::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: repeating-radial-gradient(
        circle,
        rgba(255, 255, 255, 0.03) 0,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 40px
    );
    pointer-events: none;
    z-index: 0;
}

/* Utility Bar */
.utility-bar {
    background: #111111;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 16px; /* No right padding because login-btn fills it */
    font-size: 0.85rem;
    height: 40px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.utility-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.utility-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 20px;
    color: #ffffff;
}

.v-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
}

.arrow-down {
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: -4px;
    display: inline-block;
}

.login-btn {
    background: #2a2a2a;
    color: #fff;
    border: none;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    width: 100%;
    border-bottom: 1px solid #eeeeee;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-kotak {
    font-weight: 700;
    color: #444;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.brand-life {
    font-weight: 300;
    color: #666;
    font-size: 1.4rem;
    margin-left: -2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pay-btn {
    background: #2a2a2a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.pay-btn:hover {
    background: #444;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    align-items: flex-end;
}

.bar {
    height: 3px;
    background: #222;
    border-radius: 2px;
}

.bar-top { width: 14px; }
.bar-mid { width: 22px; }
.bar-bot { width: 10px; }

/* Scroll Container */
.scroll-container {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.step-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step Headers */
.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.selection-tag {
    background: #fff;
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.back-btn, .close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero & Text */
.hero { 
    padding: 60px 24px 40px; 
    text-align: center; 
    position: relative;
    z-index: 1;
}
.hero p { 
    color: #fff; 
    font-size: 1.2rem; 
    font-weight: 400;
    margin-bottom: 5px;
}
.hero h1 { 
    font-size: 2.4rem; 
    font-weight: 800; 
    line-height: 1.1; 
    color: #fff;
}

/* Grid & Pills */
.goal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 20px;
}

.goal-card {
    background: #fff;
    color: #000;
    padding: 20px 16px;
    border-radius: 16px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.goal-card h3 { 
    font-size: 1.25rem; 
    font-weight: 800; 
    margin-bottom: 8px; 
    color: #000;
}
.goal-card p { 
    font-size: 0.9rem; 
    color: #444; 
    line-height: 1.3;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0 20px;
    margin-top: 20px;
}

.option-pill {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
}

.option-pill.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Feature & Cards */
.features-list { padding: 0 30px; display: flex; flex-direction: column; gap: 10px; }
.feature-item { font-size: 0.95rem; display: flex; gap: 10px; align-items: center; }
.feature-item span { color: #fff; }

.plan-cards { display: flex; flex-direction: column; gap: 15px; padding: 20px; }
.plan-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 16px;
    position: relative;
}
.plan-card .badge {
    position: absolute;
    top: 10px; right: 10px;
    background: #333;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.sparkle-icon {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #fff; /* Strictly white/silver sparkle */
}

/* Info Cards */
.info-card {
    background: #1a1a1a;
    margin: 30px 20px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #333;
    text-align: left;
}
.info-card h4 { margin-bottom: 5px; }
.info-card p { color: #888; font-size: 0.85rem; margin-bottom: 15px; }
.secondary-btn { background: #333; color: #fff; border: none; padding: 8px 16px; border-radius: 8px; }

/* Forms */
.form-container { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-size: 0.85rem; color: #888; }
.input-group input {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
}
.submit-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 10px;
}

/* Footer / Chat Bar */
.suggestions-container {
    display: flex;
    gap: 12px;
    padding: 10px 20px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-bottom: 5px;
}

.suggestions-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.suggestion-chip {
    background: #2c2c2c;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.suggestion-chip:hover {
    background: #444;
}

.footer-input-bar { padding: 0 20px 30px; }
.footer-input-bar { 
    padding: 20px;
    z-index: 10;
}

.input-wrapper { 
    background: #2a2a2a; 
    border: 1px solid #333; 
    border-radius: 40px; 
    padding: 8px 12px; 
    display: flex; 
    align-items: center; 
    gap: 12px;
}

.sparkle-circle {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.input-wrapper input { 
    flex: 1; 
    background: transparent; 
    border: none; 
    color: #fff; 
    padding: 12px 5px; 
    outline: none; 
    font-size: 1.05rem;
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mic-btn, .send-arrow-btn {
    background: rgba(255, 255, 255, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.mic-btn:hover, .send-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Inline Chat Mode */
.chat-mode {
    display: none;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.chat-mode.active {
    display: flex;
}

.chat-mode .chat-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
    color: #888;
    font-size: 0.9rem;
}

.chat-mode .chat-header .back-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.chat-bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.chat-bubble.user {
    align-self: flex-end;
    background: #df1f26; /* Kotak Red */
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble.bot {
    align-self: flex-start;
    background: #2a2a2a;
    color: #fff;
    border-bottom-left-radius: 4px;
    border: 1px solid #333;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
}

.loading-bubble {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 10px;
}

.bot-avatar {
    width: 32px;
    height: 32px;
    background: #333;
    border: 1px solid #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.typing-indicator-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.thinking-text {
    font-size: 0.75rem;
    color: #bbb;
    margin-left: 2px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.typing-indicator {
    background: #252525;
    padding: 12px 16px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #3a3a3a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-5px); opacity: 1; }
}

.typing-indicator span {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
