* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fff8fc;
    --surface: #ffffff;
    --surface-light: #fff0f7;
    --pink: #ed79b4;
    --pink-dark: #d94d96;
    --purple: #a982d5;
    --purple-light: #d9b9f2;
    --gold: #d9ad63;
    --text: #492b43;
    --muted: #987f94;
    --border: #f3dfeb;
    --shadow: 0 5px 20px rgba(190, 115, 160, 0.10);
}

html {
    background: var(--bg);
}

body {
    background: linear-gradient(180deg, #fff8fc, #fdf5ff);
    color: var(--text);
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
}

#app {
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    margin: auto;
    position: relative;
    background: var(--bg);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

#app-header {
    padding: 18px 20px;
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid var(--border);
}

#app-content {
    padding: 20px;
    padding-bottom: 110px;
}

.brand {
    font-size: 29px;
    font-weight: 900;
    letter-spacing: .5px;
}

.logo-desi {
    color: var(--pink-dark);
}

.logo-candi {
    color: var(--purple);
}

.logo-sparkle {
    color: var(--gold);
}

.muted {
    color: var(--muted);
    line-height: 1.5;
}

.home-tagline {
    margin-top: 15px;
    padding: 14px;
    border-radius: 15px;
    background: linear-gradient(120deg,#fff0f7,#f2eaff);
    color: var(--pink-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
    text-align: center;
}

.home-tagline span {
    color: var(--purple);
}

.tabs {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.tab-button {
    flex: 1;
    padding: 13px;
    border-radius: 14px;
    background: #fff0f7;
    color: var(--pink-dark);
    font-weight: bold;
    border: 1px solid var(--border);
}

.tab-button.active {
    color: white;
    background: linear-gradient(135deg,#ed79b4,#b78ae0);
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 20px;
    margin: 24px 0 15px;
    color: var(--text);
}

.host-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.host-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 19px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.host-cover {
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(145deg,#f9d7e9,#e8d8fa);
}

.host-info {
    padding: 13px;
}

.host-name {
    font-size: 15px;
    font-weight: bold;
    color: var(--text);
}

.live-badge {
    display: inline-block;
    background: linear-gradient(120deg,#ed579b,#f28bb9);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.primary-button,
.broadcast-live-button {
    background: linear-gradient(135deg,#ed79b4,#ad82dc);
    color: white;
    padding: 13px 20px;
    border-radius: 13px;
    font-weight: bold;
    box-shadow: var(--shadow);
}

.gold-button {
    background: linear-gradient(135deg,#e6bd76,#f5dba8);
    color: #553c26;
    padding: 13px 20px;
    border-radius: 13px;
    font-weight: bold;
}

.glass-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 19px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.glass-card h3 {
    color: var(--text);
}

input {
    color: var(--text);
}

input:focus {
    outline: 2px solid var(--purple-light);
}

#bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border);
    padding: 12px 5px calc(12px + env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -5px 20px rgba(190,115,160,.08);
}

.nav-item {
    background: transparent;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    min-width: 55px;
}

.nav-item .icon {
    font-size: 21px;
}

.nav-item.active {
    color: var(--pink-dark);
    font-weight: bold;
}

.broadcast-studio {
    padding-bottom: 15px;
}

.broadcast-heading {
    margin-bottom: 18px;
}

.broadcast-preview {
    position: relative;
    height: 390px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(145deg,#f3d9ea,#e4d5f6);
    display: flex;
    align-items: center;
    justify-content: center;
}

#broadcast-video {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.broadcast-placeholder {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.camera-icon {
    font-size: 55px;
}

.broadcast-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 18px 0;
}

.broadcast-control {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    font-size: 21px;
}

.broadcast-control.active {
    background: #fce4f0;
    border-color: var(--pink);
}

.broadcast-input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    background: #fffafd;
    border-radius: 12px;
    margin-bottom: 14px;
}

.broadcast-live-button {
    width: 100%;
}

.broadcast-status {
    color: var(--muted);
    font-size: 12px;
    margin-top: 12px;
    line-height: 1.5;
}

.loading-screen {
    text-align: center;
    padding: 60px 15px;
}

@media(max-width:380px) {
    #app-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .host-cover {
        height: 125px;
    }

    .broadcast-preview {
        height: 330px;
    }
}
