/* ============================================
   IKYOMM Application Styles
   Complete Redesign with All Tab Layouts
   ============================================ */

/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide scrollbars but keep functionality */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #fcf4ed 0%, #eceaf3 100%);
    min-height: 100vh;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

/* === UTILITY CLASSES === */
.hidden {
    display: none !important;
}

/* Loading Spinner Animation */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner.active {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* === SIDE NAVIGATION (Desktop) === */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    display: none;
    flex-direction: column;
    padding: 24px 0;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.side-nav.show {
    display: flex;
}

.side-nav.mobile-visible {
    transform: translateX(0);
}

/* Overlay for mobile menu */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.menu-overlay.show {
    display: block;
}

.nav-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-logo svg {
    width: 40px;
    height: 40px;
}

.nav-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.nav-menu {
    list-style: none;
    padding: 16px 0;
    flex: 1;
    overflow-y: auto;
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 16px 24px;
}

.nav-section-title {
    padding: 8px 24px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 32px;
    background: #5b86e5;
    border-radius: 0 4px 4px 0;
}

.nav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.logout-btn {
    margin: 16px 24px;
    padding: 14px 20px;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: 12px;
    color: #e74c3c;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.logout-btn:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* === MAIN CONTENT AREA === */
.main-content {
    margin-left: 0;
    margin-bottom: 0;
    padding: 0;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-content.with-nav {
    margin-left: 280px;
    padding-bottom: 180px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.tab-content.active {
    display: block;
}

/* === LOGIN/OTP LAYOUT === */
.login-layout {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
}

.login-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    background: #ffffff;
}

.login-right {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    color: white;
}

.login-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

.brand-content {
    position: relative;
    z-index: 1;
}

.brand-logo {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.brand-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 14px;
}

.brand-description {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
}

/* === LOGIN FORM ELEMENTS === */
.login-title {
    font-size: 30px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 15px;
    color: #6a6a6a;
    margin-bottom: 36px;
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* === OTP INPUTS === */
.otp-container {
    display: flex;
    gap: 12px;
    margin: 28px 0;
}

.otp-input {
    flex: 1;
    max-width: 56px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-input[type=number] {
    -moz-appearance: textfield;
}

/* === BUTTONS === */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary.btn-dark {
    background: #2c2c2c;
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.3);
}

.btn-secondary {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    color: #2c2c2c;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
}

.btn-secondary:hover {
    border-color: #667eea;
    color: #667eea;
}

.login-divider {
    text-align: center;
    margin: 24px 0;
    color: #999;
    font-size: 14px;
}

.terms-text {
    margin-top: 24px;
    font-size: 12px;
    color: #999;
}

/* === HOME PAGE === */
.home-content {
    padding: 36px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 6px;
}

.page-subtitle {
    font-size: 16px;
    color: #6a6a6a;
}

.settings-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.settings-btn:hover {
    background: white;
    transform: scale(1.05);
}

/* === HERO CARD === */
.hero-card {
    background: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=1600&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 40px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    border-radius: 20px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    width: fit-content;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.hero-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

/* === STATE CARDS === */
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 20px;
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.state-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 28px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    background-size: cover;          
    background-position: center;     
    background-repeat: no-repeat; 
}

.state-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
    border-radius: 16px;
}

.state-card-content {
    position: relative;
    z-index: 1;
}

.state-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.state-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.state-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.state-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.state-card-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.state-card-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

/* === TAB PAGE LAYOUT (OMMPODS, AEROMM, VYYANA) === */
.tab-page-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    min-height: calc(100vh - 180px);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.tab-main-content {
    padding: 24px;
    background: linear-gradient(180deg, #fcf4ed 0%, #eceaf3 100%);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.tab-sidebar {
    background: #ffffff;
    padding: 24px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    overflow-y: auto;
}

/* Device Status Bar */
.device-status-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    flex-wrap: wrap;
}

.device-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.device-status.connected {
    color: #2c2c2c;
}

.toggle-switch {
    width: 40px;
    height: 22px;
    background: #ccc;
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active {
    background: #4CAF50;
}

.toggle-switch.active::after {
    left: 20px;
}

.status-text {
    font-size: 11px;
    color: #999;
}

/* Tab Hero Banner */
.tab-hero-banner {
    background: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=800&h=300&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 24px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    margin-bottom: 20px;
}

.tab-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    border-radius: 16px;
}

.tab-hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

.tab-hero-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.tab-hero-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.tab-hero-content p {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 20px;
}

.welcome-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 4px;
}

.welcome-section p {
    font-size: 14px;
    color: #666;
}

/* Feature Cards Row */
.feature-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.feature-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 16px;
    color: white;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    border-radius: 12px;
}

.feature-card h4,
.feature-card p {
    position: relative;
    z-index: 1;
}

.feature-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.4;
}

.feature-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Sidebar Styles */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    letter-spacing: 0.5px;
}

.close-sidebar-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.sidebar-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.sidebar-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 13px;
    font-weight: 600;
    color: #2c2c2c;
}

.control-select {
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    width: 100%;
}

.duration-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 8px 0;
}

.duration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
}

.duration-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #999;
}

.duration-labels .active {
    color: #667eea;
    font-weight: 600;
}

.session-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-session {
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-start {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-pause {
    background: white;
    border: 2px solid #e0e0e0;
    color: #666;
}

.btn-end {
    background: #2c2c2c;
    color: white;
}

/* Mood Cards (AEROMM) */
.mood-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.mood-card {
    padding: 16px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mood-card:hover {
    transform: translateY(-2px);
}

/* === ALIGN PAGE === */
.align-page {
    padding: 24px;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

.align-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.align-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c2c2c;
}

.close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.align-section {
    margin-bottom: 28px;
}

.align-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 16px;
}

.sound-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.sound-card {
    padding: 24px 12px;
    border-radius: 14px;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sound-card:hover {
    transform: translateY(-3px);
}

.soundscape-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.soundscape-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    padding: 24px;
    color: white;
    position: relative;
}

.soundscape-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    border-radius: 14px;
}

.soundscape-card > * {
    position: relative;
    z-index: 1;
}

.soundscape-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.soundscape-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.soundscape-card p {
    font-size: 12px;
    opacity: 0.9;
}

.soundscape-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Now Playing Card */
.now-playing-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.now-playing-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.now-playing-info img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

.now-playing-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 4px;
}

.now-playing-info p {
    font-size: 13px;
    color: #666;
}

.playback-controls-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.ctrl-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ctrl-btn.play {
    width: 52px;
    height: 52px;
    background: #2c2c2c;
    color: white;
    font-size: 20px;
}

.progress-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.progress-inline span {
    font-size: 12px;
    color: #666;
    min-width: 40px;
}

.progress-bar-inline {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

.progress-fill-inline {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.speed-control-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.speed-control-inline span {
    font-size: 12px;
    color: #666;
}

/* === VYYANA SIDEBAR === */
.vyyana-sidebar {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.vyyana-sidebar .sidebar-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.vyyana-sidebar .sidebar-header h3 {
    color: white;
}

.vyyana-sidebar .close-sidebar-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.vyyana-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.vyyana-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, #667eea 0%, #764ba2 50%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.avatar-glow {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.vyyana-greeting h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.vyyana-greeting p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 32px;
}

.vyyana-input-area {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
}

.input-prompt {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 16px;
}

.input-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === SETTINGS PAGE === */
.settings-page {
    padding: 24px;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.user-profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 16px;
}

.user-name {
    font-size: 20px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 4px;
}

.user-email {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.logout-btn-settings {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 10px;
    color: #e74c3c;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.device-toggles-section {
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.device-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.device-toggle-item:last-child {
    border-bottom: none;
}

.device-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.device-name {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
}

.device-status-text {
    font-size: 13px;
    color: #999;
}

.device-status-text.connected {
    color: #4CAF50;
}

.settings-links-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.settings-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    text-decoration: none;
    color: #2c2c2c;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.2s ease;
}

.settings-link:last-child {
    border-bottom: none;
}

.settings-link:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* === INFO PAGE LAYOUT (About, Contact, Privacy, Terms) === */
.info-page-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 180px);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.info-page-content {
    padding: 32px;
    background: #ffffff;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
}

.info-page-content.legal-content {
    padding: 32px 48px;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.info-header h1 {
    flex: 1;
    font-size: 28px;
    font-weight: 700;
    color: #2c2c2c;
}

.info-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.info-images img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.info-section {
    margin-bottom: 24px;
}

.info-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 12px;
}

.info-section p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.info-page-side {
    background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=800&h=1000&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
}

.info-page-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.brand-panel {
    position: relative;
    z-index: 1;
    color: white;
}

.brand-logo-large {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.brand-panel h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.brand-panel p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #2c2c2c;
}

.form-input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.support-info {
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
}

.support-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 12px;
}

.support-info p {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

/* Legal Content */
.company-info {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    margin-bottom: 24px;
}

.company-info p {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.legal-section {
    margin-bottom: 24px;
}

.legal-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 10px;
}

.legal-section p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
}

.legal-section ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.legal-section li {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 6px;
}

/* === BOTTOM NAVIGATION (Mobile) === */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    padding: 8px 4px 16px;
    z-index: 210;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.bottom-nav.show {
    display: flex;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    flex: 1;
}

.bottom-nav-item .nav-icon {
    width: 22px;
    height: 22px;
}

.bottom-nav-item span {
    font-size: 9px;
    font-weight: 600;
}

.bottom-nav-item.active {
    color: white;
}

/* === AUDIO PLAYER === */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    padding: 12px 16px;
    z-index: 200;
    box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.4);
    display: none;
}

.audio-player.show {
    display: block;
}

.audio-player.with-nav {
    left: 280px;
}

.audio-main-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.audio-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.audio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-details {
    min-width: 0;
    flex: 1;
}

.audio-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.audio-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    padding: 6px;
}

.control-btn:hover {
    transform: scale(1.1);
    color: #5b86e5;
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.audio-play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.audio-play-btn:hover {
    transform: scale(1.05);
}

.audio-play-btn svg {
    width: 20px;
    height: 20px;
    color: #2c2c2c;
}

.audio-progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.audio-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    min-width: 32px;
    font-weight: 600;
}

.progress-bar {
    position: relative;
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    cursor: pointer;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    width: 0;
    transition: width 0.1s linear;
}

.playback-speed {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.speed-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.speed-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.speed-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* === PORTRAIT/LANDSCAPE LAYOUT SWITCHING === */
/* Hide portrait version in landscape/desktop */
.portrait-version {
    display: none;
}

/* Show landscape version by default */
.landscape-version {
    display: block;
}

/* === RESPONSIVE (Mobile/Portrait) === */
@media (max-width: 1024px) and (orientation: portrait), (max-width: 768px) {
    /* Hide landscape, show portrait */
    .landscape-version {
        display: none !important;
    }
    
    .portrait-version {
        display: block !important;
    }
    /* Side Navigation - Sliding Menu */
    .side-nav.show {
        display: flex;
        transform: translateX(-100%);
    }
    
    .side-nav.show.mobile-visible {
        transform: translateX(0);
    }
    
    /* Login Layout */
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-right {
        display: none;
    }

    .login-left {
        padding: 40px 20px;
    }

    /* Main Content - Fixed layout with scrollable content */
    .main-content.with-nav {
        margin-left: 0;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }
    
    /* Tab content scrollable area */
    .tab-content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Add bottom padding when audio player is present */
    .tab-content.active {
        padding-bottom: 70px;
    }
    
    /* Add extra padding when audio player is visible */
    #home.active,
    #align.active {
        padding-bottom: 160px;
    }

    .home-content {
        padding: 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .page-header {
        flex-wrap: nowrap;
        gap: 12px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }

    /* State Grid */
    .state-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .state-card {
        padding: 20px;
        min-height: 120px;
    }
    
    .state-card-title {
        font-size: 18px;
    }
    
    .state-card-description {
        font-size: 12px;
    }

    .hero-card {
        padding: 24px;
        min-height: 180px;
        margin-bottom: 24px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-description {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    /* Tab Page Layout */
    .tab-page-layout {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100vw;
    }
    
    .tab-main-content {
        padding: 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .tab-sidebar {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding: 16px;
    }
    
    .device-status-bar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 12px;
    }
    
    .device-status {
        font-size: 11px;
    }
    
    .tab-hero-banner {
        padding: 16px;
        min-height: 120px;
        margin-bottom: 16px;
    }
    
    .tab-hero-content h2 {
        font-size: 18px;
    }
    
    .tab-hero-content p {
        font-size: 11px;
    }
    
    .welcome-section h2 {
        font-size: 20px;
    }
    
    .welcome-section p {
        font-size: 13px;
    }
    
    .feature-cards-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .feature-card {
        padding: 14px;
    }
    
    .feature-card h4 {
        font-size: 13px;
    }
    
    .feature-card p {
        font-size: 10px;
    }
    
    /* Align Page */
    .align-page {
        padding: 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .align-header h1 {
        font-size: 22px;
    }
    
    .sound-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .sound-card {
        padding: 16px 8px;
        font-size: 11px;
    }
    
    .soundscape-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .soundscape-card {
        padding: 16px;
    }
    
    /* Info Page Layout */
    .info-page-layout {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100vw;
    }
    
    .info-page-side {
        display: none;
    }
    
    .info-page-content {
        padding: 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .info-page-content.legal-content {
        padding: 16px;
    }
    
    .info-header h1 {
        font-size: 22px;
    }
    
    .info-images {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .info-images img {
        height: 140px;
    }
    
    /* Settings Page */
    .settings-page {
        padding: 16px;
        max-width: 100%;
    }
    
    .settings-header h1 {
        font-size: 20px;
    }
    
    .user-profile-section {
        padding: 20px;
    }
    
    .user-avatar {
        width: 70px;
        height: 70px;
    }
    
    .user-name {
        font-size: 18px;
    }

    /* Audio Player - Seamlessly attached to bottom nav in portrait mode */
    .audio-player {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 56px;
        padding: 10px 12px 8px;
        z-index: 200;
        margin-bottom: 0;
    }
    
    .audio-player.with-nav {
        left: 0;
        bottom: 56px;
    }
    
    .audio-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .audio-title {
        font-size: 13px;
    }
    
    .audio-subtitle {
        font-size: 11px;
    }

    .audio-play-btn {
        width: 36px;
        height: 36px;
    }

    .audio-play-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .playback-speed {
        display: flex;
        margin-top: 6px;
    }
    
    .playback-speed span {
        font-size: 10px;
    }
    
    .speed-btn {
        padding: 3px 8px;
        font-size: 10px;
    }

    /* OTP */
    .otp-container {
        gap: 8px;
    }

    .otp-input {
        max-width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    /* Bottom Nav - Fixed to bottom */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 6px 2px 12px;
        z-index: 210;
    }
    
    .bottom-nav-item {
        padding: 4px 2px;
    }
    
    .bottom-nav-item .nav-icon {
        width: 20px;
        height: 20px;
    }
    
    .bottom-nav-item span {
        font-size: 8px;
    }
}


/* === PORTRAIT-SPECIFIC STYLES === */
.portrait-page-header {
    padding: 20px 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.portrait-page-header > div {
    flex: 1;
}

.portrait-page-header .settings-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    flex-shrink: 0;
}

.portrait-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.portrait-page-subtitle {
    font-size: 14px;
    color: #666;
}

.portrait-hero-card {
    margin: 0 20px 24px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 280px;
    position: relative;
}

.portrait-hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
}

.portrait-hero-badge {
    font-size: 16px;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.portrait-hero-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.portrait-hero-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.portrait-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 0 20px;
    margin-bottom: 16px;
}

.portrait-state-grid {
    padding: 0 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.portrait-state-card {
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 160px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.portrait-state-card:active {
    transform: scale(0.98);
}

.portrait-state-card-content {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 160px;
}

/* === PORTRAIT TAB HEADER (with back button) === */
.portrait-tab-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.portrait-tab-header .back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #333;
    flex-shrink: 0;
}

.portrait-tab-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
    flex: 1;
    text-align: center;
}

.portrait-tab-header .settings-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    flex-shrink: 0;
}

/* === PORTRAIT DISCOVER PAGE (OMMPODS) === */
.portrait-discover-page {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portrait-discover-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.portrait-discover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait-discover-controls {
    padding: 24px 20px;
    flex: 1;
}

.portrait-control-group {
    margin-bottom: 24px;
}

.portrait-control-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.portrait-control-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
}

.portrait-duration-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.portrait-duration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6b4ce6;
    cursor: pointer;
}

.portrait-duration-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6b4ce6;
    cursor: pointer;
    border: none;
}

.portrait-duration-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.portrait-duration-labels span {
    font-size: 11px;
    color: #999;
}

.portrait-duration-labels span.active {
    color: #6b4ce6;
    font-weight: 600;
}

.portrait-session-buttons {
    margin-top: 32px;
}

.portrait-btn-session {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.portrait-btn-start {
    background: #6b4ce6;
    color: white;
    margin-bottom: 12px;
}

.portrait-btn-start:active {
    background: #5a3dd5;
}

.portrait-secondary-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.portrait-btn-pause {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}

.portrait-btn-end {
    background: #333;
    color: white;
}

.portrait-btn-pause:active {
    background: #f5f5f5;
}

.portrait-btn-end:active {
    background: #1a1a1a;
}

.portrait-state-card-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.portrait-state-card-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}



/* === PORTRAIT AEROMM PAGE === */
.portrait-aeromm-page {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portrait-aeromm-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.portrait-section-label {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.portrait-mood-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.portrait-mood-card {
    height: 100px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.portrait-mood-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.portrait-mood-overlay h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.portrait-btn-stop {
    background: #333;
    color: white;
}

.portrait-btn-stop:active {
    background: #1a1a1a;


/* === PORTRAIT ALIGN PAGE === */
.portrait-align-page {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portrait-align-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.portrait-nature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.portrait-nature-btn {
    height: 100px !important;
    border-radius: 12px !important;
    border: none !important;
    position: relative !important;
    cursor: pointer;
    overflow: hidden;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: white !important;
    text-align: left !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background-size: cover !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    transition: transform 0.2s ease;
}

.portrait-nature-btn:active {
    transform: scale(0.98);
}

.portrait-nature-grid .portrait-nature-btn:nth-child(1) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

.portrait-nature-grid .portrait-nature-btn:nth-child(2) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
}

.portrait-nature-grid .portrait-nature-btn:nth-child(3) {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%) !important;
}

.portrait-nature-grid .portrait-nature-btn:nth-child(4) {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%) !important;
}

.portrait-nature-grid .portrait-nature-btn:nth-child(5) {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%) !important;
}

.portrait-nature-grid .portrait-nature-btn:nth-child(6) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.portrait-nature-btn span {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 1;
}

.portrait-soundscapes-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    margin-bottom: 24px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.portrait-soundscapes-scroll::-webkit-scrollbar {
    display: none;
}

.portrait-soundscape-card {
    min-width: 180px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.portrait-soundscape-card:active {
    transform: scale(0.98);
}

.portrait-soundscape-card img {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.soundscape-badge {
    display: inline-block;
    background: rgba(107, 76, 230, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.portrait-soundscape-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 8px 0 4px;
}

.portrait-soundscape-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.soundscape-duration {
    font-size: 12px;
    color: #999;
}

.portrait-now-playing {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 16px;
    padding: 16px;
    color: white;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.now-playing-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.now-playing-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.now-playing-info {
    flex: 1;
}

.now-playing-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}

.now-playing-info p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.now-playing-duration {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.now-playing-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.now-playing-progress span {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.progress-bar-now {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill-now {
    height: 100%;
    background: #6b4ce6;
    transition: width 0.3s ease;
}

.now-playing-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.control-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: rgba(255,255,255,0.8);
    transition: color 0.2s ease;
}

.control-icon:hover {
    color: white;
}

.control-icon svg {
    display: block;
}

.control-icon-large {
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    color: white;
    transition: background 0.2s ease;
}

.control-icon-large:hover {
    background: rgba(255,255,255,0.15);
}

.control-icon-large svg {
    display: block;
}

.now-playing-speed {
    display: flex;
    justify-content: center;
}

.speed-indicator {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* === PORTRAIT VYYANA PAGE === */
.portrait-vyyana-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(180deg, #f5f0ff 0%, #ffffff 100%);
}

.portrait-vyyana-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
    text-align: center;
}

.vyyana-ai-glow {
    width: 150px;
    height: 150px;
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow-circle {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, #c8b3ff 0%, #9f7aea 25%, #7c5ed8 50%, rgba(107, 76, 230, 0.6) 75%, rgba(107, 76, 230, 0.3) 100%) !important;
    animation: pulse 3s ease-in-out infinite !important;
    box-shadow: 0 0 60px rgba(107, 76, 230, 0.6), 0 0 100px rgba(107, 76, 230, 0.4), inset 0 0 40px rgba(255, 255, 255, 0.2) !important;
    opacity: 1 !important;
    display: block !important;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.vyyana-greeting {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    text-align: center;
}

.vyyana-intro {
    font-size: 16px;
    color: #666;
    margin: 0 0 60px;
    text-align: center;
}

.vyyana-input-area {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 30px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.vyyana-add-btn, .vyyana-mic-btn, .vyyana-wave-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #6b4ce6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vyyana-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
    padding: 8px 4px;
}

.vyyana-input::placeholder {
    color: #aaa;
}

.vyyana-record-btn {
    width: 48px;
    height: 48px;
    background: #6b4ce6;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(107, 76, 230, 0.3);
}

.record-circle {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
}
}