/* ============================================
   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: Manrope;/*-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;
    max-height: 340px;
    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: #d1caca;
    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-image: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

.state-card:nth-child(4) {
    background-image: 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;
}

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

.aeromm-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 10px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    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;
}

.aeromm-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;
}

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

.aeromm-card:hover {
    /* transform: translateY(-4px); */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
}
/* Tap highlight overlay */
.aeromm-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: grey; /* highlight color */
  border:1px solid;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  border-color: light-grey;
}

.aeromm-card:active::after {
  opacity: 1;
}
.aeromm-card:nth-child(2) {
    background-image: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

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

.aeromm-card-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 3px;
    margin-top: 15px;
}

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

.align-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding:0 20px;
}

.align-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 10px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    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;
}

.align-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;
}

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

.align-card:hover {
    /* transform: translateY(-4px); */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
}
/* Tap highlight overlay */
.align-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: grey; /* highlight color */
  border:1px solid;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  border-color: light-grey;
}

.align-card:active::after {
  opacity: 1;
}
.align-card:nth-child(2) {
    background-image: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

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

.align-card-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 3px;
    margin-top: 15px;
}

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

/* 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: 5px;
}

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

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


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

.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);
}

.aroma-cards{
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 10px;
}

.aroma-card {
    margin-bottom:10px;
    border-radius:12px;
    overflow:hidden;
    position:relative;
    height:80px;
}

.aroma-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: 10px;
}

.user-profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    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: 5px;
    padding: 10px 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: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.device-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    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('images/homePageMainImage.jpg');
    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%;
    font-family:Manrope;
}

.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;
    -webkit-tap-highlight-color: transparent;
}

.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: inherit;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    /* 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;
        text-align:center;
    }
    
    .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;
        min-height:300px;
    } 
    
    .info-images img {
        height: 300px;
    }
    
    /* 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 {
        align-items:center;
        gap: 10px;
    }

    .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;
    height: 200px;
    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-start;
    min-height: 280px;
    margin-top:20px;
    text-align:center;
}

.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;
    background-repeat: no-repeat;
    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: 250px;
    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;
    padding:0px;
}

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

.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;
    margin:10px;
}

.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;
    height:50px;
}

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

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

.portrait-pod-buttons-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom:20px;
    margin-top:0px;
}

.pod-control-button-portrait{
    color: white;
    background: #705fd0;
    border: 1px solid #ddd;
    height:60px;
    border-radius:10px;
}

.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: 0px 20px;
    flex: 1;
    overflow-y: auto;
}

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

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

.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: 10px;
}

.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%;
}
}
/* Audio Player Variants - Portrait Mode */
@media (max-width: 1024px) {
    /* Position audio player above bottom navigation */
    .audio-player {
        bottom: 57px !important;
    }
    
    /* Home tab minimal player - matches reference design */
    .audio-player.minimal {
        padding: 10px 16px !important;
        height: auto !important;
        min-height: 55px !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    /* Hide prev/next buttons and speed controls in minimal mode */
    .audio-player.minimal .playback-speed,
    .audio-player.minimal .control-btn:not(.audio-play-btn) {
        display: none !important;
    }
    
    /* Main controls row - thumbnail, info, and play button */
    .audio-player.minimal .audio-main-controls {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    .audio-player.minimal .audio-info {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex: 1 !important;
    }
    
    .audio-player.minimal .audio-thumbnail {
        width: 40px !important;
        height: 40px !important;
        border-radius: 6px !important;
    }
    
    .audio-player.minimal .audio-details {
        flex: 1 !important;
    }
    
    .audio-player.minimal .audio-title {
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    
    .audio-player.minimal .audio-subtitle {
        font-size: 12px !important;
        opacity: 0.7 !important;
    }
    
    /* Play button on the right */
    .audio-player.minimal .audio-controls {
        margin-left: auto !important;
    }
    
    .audio-player.minimal .audio-play-btn {
        display: flex !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        border: 2px solid white !important;
        background: transparent !important;
    }
    
    /* Progress bar - thin line spanning full width */
    .audio-player.minimal .audio-progress-container {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 0 !important;
    }
    
    .audio-player.minimal .progress-bar {
        flex: 1 !important;
        height: 3px !important;
        background: rgba(255,255,255,0.2) !important;
        border-radius: 2px !important;
    }
    
    .audio-player.minimal .progress-fill {
        height: 100% !important;
        background: white !important;
        border-radius: 2px !important;
    }
    
    .audio-player.minimal .audio-time {
        font-size: 11px !important;
        color: rgba(255,255,255,0.7) !important;
        min-width: 35px !important;
    }
    
    /* Full audio player for ALIGN tab in portrait */
    .audio-player:not(.minimal) {
        padding: 12px 16px !important;
        flex-direction: column !important;
        gap: 8px !important;
        height: auto !important;
        min-height: 120px !important;
    }
    
    .audio-player:not(.minimal) .audio-main-controls {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        gap: 12px !important;
        margin-bottom: 0 !important;
    }
    
    .audio-player:not(.minimal) .audio-info {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .audio-player:not(.minimal) .audio-controls {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .audio-player:not(.minimal) .control-btn {
        display: flex !important;
    }
    
    .audio-player:not(.minimal) .audio-progress-container {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .audio-player:not(.minimal) .progress-bar {
        flex: 1 !important;
        height: 4px !important;
        background: rgba(255,255,255,0.2) !important;
        border-radius: 2px !important;
    }
    
    .audio-player:not(.minimal) .playback-speed {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .audio-player:not(.minimal) .speed-btn {
        padding: 4px 12px !important;
        font-size: 12px !important;
    }
}

/* Landscape Mode - Audio Player Always Visible */
@media (min-width: 1025px), ((orientation: landscape) and (min-width: 1024px)) {
    /* Hide bottom navigation in landscape/desktop mode */
    .bottom-nav {
        display: none !important;
    }
    
    .audio-player {
        display: none; /* Hidden by default */
    }
    
    .audio-player.show {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Ensure progress bar is visible in landscape */
    .audio-player.show .audio-progress-container {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }
    
    .audio-player.show .progress-bar {
        display: block !important;
        flex: 1 !important;
        height: 4px !important;
        background: rgba(255,255,255,0.2) !important;
    }
    
    .audio-player.show .progress-fill {
        display: block !important;
        height: 100% !important;
    }
    
    .audio-player.show .audio-time {
        display: inline-block !important;
        font-size: 11px !important;
    }
    
    .audio-player.show .playback-speed {
        display: flex !important;
        margin-top: 8px !important;
    }
    
    /* Landscape Sidebar for tabs */
    .tab-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 420px !important;
        background: white !important;
        box-shadow: -4px 0 20px rgba(0,0,0,0.2) !important;
        transition: right 0.3s ease, left 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
        z-index: 10000 !important;
        overflow-y: auto !important;
        display: block !important;
        padding: 20px !important;
        /* Hidden state - move to left off-screen to avoid affecting page width */
        right: auto !important;
        left: -9999px !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(0) !important;
    }
    
    .tab-sidebar.active {
        left: auto !important;
        right: 0 !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .close-sidebar-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        border: none;
        background: rgba(0,0,0,0.08);
        border-radius: 50%;
        cursor: pointer;
        font-size: 24px;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
        z-index: 10;
    }
    
    .close-sidebar-btn:hover {
        background: rgba(0,0,0,0.15);
    }
    
    /* Hide tab content that should only show in sidebar */
    .tab-content:not(#home) .landscape-version:not(.tab-sidebar) {
        display: none !important;
    }
    
    /* FORCE hide sidebar tab-content elements in landscape - only sidebars should show */
    #ommpods, #aeromm, #vyyana, #align, #settings {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Only home tab should be visible in landscape */
    #home {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Login/OTP pages should show when active */
    #login-email.active, #login-mobile.active, #otp-email.active, #otp-mobile.active {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Utility pages (about, contact, etc.) should show when active */
    #about.active, #contact.active, #privacy.active, #terms.active {
        display: block !important;
        visibility: visible !important;
    }
}
/* Audio Player - Constrained Width */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 240px;
    right: 0;
    max-width: calc(100% - 240px);
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 10px 20px;
    display: none; /* Hidden by default, shown via .show class */
    align-items: center;
    gap: 16px;
    height: 70px;
    z-index: 500;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

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

@media (max-width: 1024px) {
    .audio-player {
        left: 0;
        max-width: 100%;
    }
}

/* Landscape Tab Sidebars - DISABLED to prevent white division bug
   Sidebars are now handled via .landscape-sidebar class instead */
@media (min-width: 1025px) {
    /* Hide non-active tab contents but don't position them as sidebars */
    .tab-content:not(.active):not(#home):not(#login-email):not(#login-mobile):not(#otp-email):not(#otp-mobile) {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Login/OTP pages should remain normal positioned and visible when active */
    #login-email, #login-mobile, #otp-email, #otp-mobile {
        position: relative !important;
        right: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    
    /* Hide login/OTP pages when not active */
    #login-email:not(.active), #login-mobile:not(.active), #otp-email:not(.active), #otp-mobile:not(.active) {
        display: none !important;
    }
    
    /* Show login/OTP pages when active - use block to preserve internal grid layout */
    #login-email.active, #login-mobile.active, #otp-email.active, #otp-mobile.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure login-layout fills the entire width */
    #login-email .login-layout, #login-mobile .login-layout, 
    #otp-email .login-layout, #otp-mobile .login-layout {
        width: 100%;
        min-width: 100%;
    }
}
.landscape-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    height: 90vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    padding: 60px 30px 30px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
}
.landscape-sidebar.active { 
    right: 0 !important;
    left: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: all !important;
    transform: translateX(0) !important;
}
/* Force close styles for landscape sidebar when not active */
.landscape-sidebar:not(.active) {
    right: auto !important;
    left: -9999px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(0) !important;
}
.landscape-sidebar .close-sidebar-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
}
@media (max-width: 1024px) { .landscape-sidebar { display: none; } }
.landscape-sidebar .close-sidebar-btn {
    z-index: 10000 !important;
    pointer-events: all !important;
}

/* Settings content in landscape sidebar */
.landscape-sidebar .settings-page {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.landscape-sidebar .settings-header {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 24px !important;
}

.landscape-sidebar .settings-header h1 {
    font-size: 24px !important;
    font-weight: 700 !important;
}

.landscape-sidebar .settings-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.landscape-sidebar .user-profile-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 20px !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

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

.landscape-sidebar .user-name {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}

.landscape-sidebar .user-email {
    font-size: 13px !important;
    color: #666 !important;
    margin-bottom: 12px !important;
}

.landscape-sidebar .logout-btn-settings {
    padding: 10px 20px !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
}

.landscape-sidebar .device-toggles-section {
    background: white !important;
    border-radius: 12px !important;
    padding: 16px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

.landscape-sidebar .device-toggle-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
}

.landscape-sidebar .device-info {
    display: flex !important;
    flex-direction: column !important;
}

.landscape-sidebar .device-name {
    font-weight: 600 !important;
    font-size: 14px !important;
}

.landscape-sidebar .device-status-text {
    font-size: 12px !important;
    color: #999 !important;
}

.landscape-sidebar .device-status-text.connected {
    color: #4caf50 !important;
}

.landscape-sidebar .toggle-switch {
    width: 44px !important;
    height: 24px !important;
    background: #ccc !important;
    border-radius: 12px !important;
    position: relative !important;
}

.landscape-sidebar .toggle-switch.active {
    background: #4caf50 !important;
}

.landscape-sidebar .settings-links-section {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

.landscape-sidebar .settings-link {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px !important;
    text-decoration: none !important;
    color: #333 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.landscape-sidebar .settings-link:last-child {
    border-bottom: none !important;
}

.landscape-sidebar .settings-link:hover {
    background: #f9f9f9 !important;
}

.bottom-nav { z-index: 1000 !important; }
.audio-player { z-index: 900 !important; }

/* Connection Screen Styles */
.connection-screen {
    padding: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.connection-header {
    margin-bottom: 24px;
    text-align: center;
}

.connection-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
}

.connection-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.connection-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.connection-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.connection-input {
    width: 100%;
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.connection-input:focus {
    border-color: #6b4ce6;
}

.connection-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 5px 0;
}

.connection-separator::before,
.connection-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.connection-separator span {
    padding: 0 12px;
    color: #999;
    font-size: 14px;
}

.connection-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    padding:2px;
}

.qr-section .qr-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qr-code {
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 5px;
    background: white;
}

.qr-instructions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qr-instructions p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.btn-scan {
    padding: 10px 24px;
    background: #6b4ce6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-start;
}

.btn-scan:hover {
    background: #5a3dc5;
}

.bluetooth-section .connection-instruction {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px 0;
}

.btn-connect {
    width: 100%;
    padding: 14px;
    background: #6b4ce6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-connect:hover {
    background: #5a3dc5;
}

/* Responsive for connection screens */
@media (max-width: 768px) {
    .qr-section .qr-container {
        flex-direction: column;
        text-align: center;
    }
    
    .qr-instructions {
        align-items: center;
    }
    
    .btn-scan {
        align-self: center;
    }
}

/* Utility tabs (About, Contact, Privacy, Terms) - Full page in landscape */
@media (min-width: 1025px) {
    #about, #contact, #privacy, #terms {
        position: fixed !important;
        top: 0 !important;
        left: 240px !important;
        right: 0 !important;
        bottom: 0 !important;
        width: auto !important;
        height: 100vh !important;
        background: white !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        padding: 0 !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
    }
    
    #about.active, #contact.active, #privacy.active, #terms.active {
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Ensure playback speed is always visible in landscape */
@media (min-width: 1025px) {
    .audio-player .playback-speed {
        display: flex !important;
    }
}

.video-container-portrait{
    width: 100%;
    max-width:600px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    background: black;
}
.videoPortrait{
    width: 90%;        /* Video fits container width */
    height: auto;       /* Maintain aspect ratio */
    display: block;
    margin:10px auto;
    margin-bottom:25px;
    border:1px solid lightgrey;
}

.video {
    width: 100%;
    height: auto;
    background: black;
}

/* CONTROL BAR */
.controls {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.55);
    color: white;
    transition: opacity 0.3s;
}

/* Hide controls when not hovered (like YouTube) */
.video-container:hover .controls {
    opacity: 1;
}

/* Buttons */
.btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* Seek bar */
.seek {
    flex: 1;
}

/* Volume + Speed dropdown */
.speed-select {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid #555;
    padding: 2px 4px;
} */

.video-container {
    width: 100%;
    max-width: 800px;
    margin: auto;
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video {
    width: 100%;
    height: auto;
}

