/**
 * DokuBasis - Custom Styles (Light Green Theme)
 * Theme-ready: Alle Farben als CSS-Variablen für einfaches Theme-Switching
 * 
 * Um ein Dark Theme hinzuzufügen:
 * @media (prefers-color-scheme: dark) {
 *   :root {
 *     --bg-light: #1a1a2e;
 *     --text-dark: #f8fdf9;
 *     ... etc
 *   }
 * }
 */

:root {
    /* Primary Colors - Grüntöne aus dem Logo */
    --primary: #52b788;
    --primary-dark: #2d6a4f;
    --primary-darker: #1b4332;
    --primary-light: #95d5b2;
    --primary-lighter: #b7e4c7;
    --primary-lightest: #d8f3dc;
    
    /* Background Colors */
    --bg-light: #ffffff;
    --bg-subtle: #f8fdf9;
    --bg-accent: #d8f3dc;
    --bg-card: #ffffff;
    --bg-gradient-start: #f8fdf9;
    --bg-gradient-mid: #ffffff;
    --bg-gradient-end: #d8f3dc;
    
    /* Text Colors - Dunkleres Grün für besseren Kontrast */
    --text-dark: #0d3b2f;
    --text-primary: #1b4332;
    --text-secondary: #2d6a4f;
    --text-muted: #52b788;
    --text-light: #74c69d;
    
    /* Border Colors */
    --border-light: #b7e4c7;
    --border-subtle: #d8f3dc;
    
    /* Status Colors */
    --success: #52b788;
    --success-bg: #d8f3dc;
    --warning: #fbbf24;
    --warning-bg: #fff3cd;
    --error: #dc2626;
    --error-bg: #fee;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(29, 67, 50, 0.08);
    --shadow-md: 0 4px 16px rgba(29, 67, 50, 0.1);
    --shadow-lg: 0 8px 32px rgba(29, 67, 50, 0.12);
    --shadow-xl: 0 20px 60px rgba(29, 67, 50, 0.15);
    
    /* Modal Overlay */
    --overlay-bg: rgba(29, 67, 50, 0.4);
}



* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-dark);
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Login Page specific styles (für login.html Template) */
.logo {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo .logo-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo h1 {
    color: var(--text-secondary);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
    font-weight: 600;
}

.tagline {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.login-btn svg {
    width: 24px;
    height: 24px;
}

.google-btn {
    background: var(--bg-card);
    color: var(--text-dark);
    border: 2px solid var(--border-light);
}

.google-btn:hover {
    background: var(--bg-subtle);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.microsoft-btn {
    background: var(--bg-accent);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
}

.microsoft-btn:hover {
    background: var(--primary-lighter);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.error-message {
    background: var(--error-bg);
    border: 2px solid #f87171;
    color: var(--error);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.success-message {
    background: var(--success-bg);
    border: 2px solid var(--success);
    color: var(--text-secondary);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.login-container {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-subtle);
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.login-logo h1 {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin: 0;
    color: var(--text-primary);
}

.login-logo span {
    color: var(--primary);
    font-weight: 600;
}

.login-tagline {
    color: var(--text-muted);
    margin: 1rem 0 2.5rem;
    font-size: 1rem;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn svg {
    width: 24px;
    height: 24px;
}

.login-btn.google {
    background: var(--bg-card);
    color: var(--text-dark);
    border: 2px solid var(--border-light);
}

.login-btn.microsoft {
    background: var(--bg-accent);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* App Screen - nicht mehr benötigt, da separate app.html */

ion-header ion-toolbar {
    --background: var(--bg-card);
    --color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
}

ion-content {
    --background: transparent;
}

/* Header User Info */
.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

#user-name {
    font-weight: 500;
}

#user-name {
    color: var(--text-primary);
}

#user-email {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Header Credits Display - Prominent in Toolbar */
.header-credits-display {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
    align-items: flex-end;
    margin-right: 8px;
}

.credits-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    background: var(--primary-lightest);
    color: var(--primary-dark);
    /*border: 2px solid var(--primary-light);*/
    white-space: nowrap;
}

.subscription-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.subscription-badge.trial {
    background: var(--warning-bg);
    color: #d97706;
    border: 1px solid #fbbf24;
}

.subscription-badge.abo {
    background: var(--success-bg);
    color: var(--primary-dark);
    border: 1px solid var(--primary);
}

/* Responsive: Hide on very small screens */
@media (max-width: 400px) {
    .subscription-badge {
        display: none;
    }
    .credits-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* Quota Badge (legacy) */
.quota-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.quota-sub {
    background: var(--success-bg);
    color: var(--primary-dark);
}

.quota-free {
    background: var(--warning-bg);
    color: var(--warning);
}

/* Recording Section */
.recording-section {
    padding: 2rem;
    text-align: center;
}

#record-btn {
    --background: var(--primary);
    --background-hover: var(--primary-dark);
    --border-radius: 50px;
    --padding-start: 2rem;
    --padding-end: 2rem;
    font-size: 1.1rem;
    height: 56px;
    margin-bottom: 1rem;
}

#record-btn.recording {
    --background: #dc2626;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.upload-alternative {
    margin-top: 1.5rem;
}

.upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.upload-label:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
}

#upload-input {
    display: none;
}

/* Status Indicator */
#status-indicator {
    min-height: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-recording {
    color: #ef4444 !important;
    animation: blink 1s infinite;
}

.status-processing {
    color: #3b82f6 !important;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Protocols List */
.protocols-section {
    padding: 0 1rem 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    color: var(--text-primary);
}

#protocols-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.protocol-card {
    --background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.protocol-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--primary-light);
}

ion-card-header {
    padding-bottom: 8px;
}

ion-card-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
}

ion-card-title {
    color: var(--text-primary);
    font-size: 1.1rem;
}

ion-card-content p {
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

ion-badge {
    --background: var(--bg-accent);
    --color: var(--primary-dark);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state ion-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state .hint {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    border: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-xl);
}

.modal-content h2 {
    margin: 0 0 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-content .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.modal-content ion-list {
    background: transparent;
    padding: 0;
}

.modal-content ion-item {
    --background: transparent;
    --color: var(--text-dark);
    --border-color: var(--border-subtle);
}

.modal-content ion-item h3 {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.modal-content ion-item p.wrap {
    white-space: normal;
}

.modal-content ion-item-divider {
    --background: var(--bg-accent);
    --color: var(--text-primary);
    margin-top: 1rem;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.detail-actions ion-button {
    flex: 1;
}

.raw-text {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-subtle);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.raw-text summary {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.raw-text pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.85rem;
    margin: 1rem 0 0;
    color: var(--text-muted);
}

/* Upgrade Modal */
.upgrade-content {
    text-align: center;
}

.upgrade-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.upgrade-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.upgrade-features {
    text-align: left;
    margin-bottom: 2rem;
}

.upgrade-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.upgrade-features ion-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

#stripe-link {
    display: block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}

#stripe-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 600px) {
    .login-container {
        padding: 2rem;
    }
    
    .login-logo h1 {
        font-size: 2.2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* Toast customization */
ion-toast {
    --background: var(--bg-card);
    --color: var(--text-dark);
    --border-radius: 12px;
    --box-shadow: var(--shadow-lg);
    --border-width: 1px;
    --border-style: solid;
    --border-color: var(--border-light);
}

/* ============================================
   PAYMENT SUCCESS PAGE STYLES
   ============================================ */

.payment-container {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-subtle);
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.payment-container .logo {
    margin-bottom: 2rem;
}

.payment-container .logo h1 {
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.payment-container .logo span {
    color: var(--primary);
    font-weight: 600;
}

/* Loading State */
.loading-state {
    display: block;
}

.loading-state.hidden {
    display: none;
}

.spinner {
    width: 80px;
    height: 80px;
    margin: 2rem auto;
    border: 4px solid var(--primary-lightest);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-top: 1rem;
}

.loading-subtext {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Success State */
.success-state {
    display: none;
}

.success-state.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.checkmark-container {
    width: 120px;
    height: 120px;
    margin: 2rem auto;
    position: relative;
}

.checkmark-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--success-bg);
    border: 4px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.checkmark {
    font-size: 4rem;
    color: var(--success);
    animation: checkmarkPop 0.5s ease-out 0.3s both;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.success-text {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    animation: fadeInUp 0.5s ease-out 0.5s both;
}

.success-subtext {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.75rem;
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.redirect-info {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease-out 0.7s both;
}

/* ============================================
   ERROR PAGE STYLES
   ============================================ */

.error-container {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-subtle);
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.error-container .logo {
    margin-bottom: 2rem;
}

.error-container .logo h1 {
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.error-container .logo span {
    color: var(--primary);
    font-weight: 600;
}

.error-icon-container {
    margin: 2rem auto;
    position: relative;
    width: 120px;
    height: 120px;
}

.error-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--warning-bg);
    border: 4px solid var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.error-icon {
    font-size: 4rem;
    font-weight: 300;
    color: var(--warning);
    line-height: 1;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-code {
    font-size: 3rem;
    font-weight: 700;
    color: var(--warning);
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.error-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.error-message {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.5s ease-out 0.5s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(82, 183, 136, 0.3);
}

.btn-secondary {
    background: var(--bg-accent);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--primary-lighter);
    transform: translateY(-2px);
}

.error-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

.error-details summary {
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.error-details summary:hover {
    color: var(--primary);
    background: var(--bg-subtle);
}

.error-details-content {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-subtle);
    border-radius: 8px;
    text-align: left;
    border: 1px solid var(--border-subtle);
}

.error-details-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
}

.error-details-content strong {
    color: var(--text-primary);
}

/* Responsive Styles für Error & Payment Pages */
@media (max-width: 600px) {
    .payment-container,
    .error-container {
        padding: 2rem;
    }
    
    .error-code {
        font-size: 2.5rem;
    }
    
    .error-title {
        font-size: 1.25rem;
    }
    
    .error-icon-container {
        width: 100px;
        height: 100px;
    }
    
    .error-circle {
        width: 100px;
        height: 100px;
    }
    
    .error-icon {
        font-size: 3rem;
    }
    
    .checkmark-container {
        width: 100px;
        height: 100px;
    }
    
    .checkmark-circle {
        width: 100px;
        height: 100px;
    }
    
    .checkmark {
        font-size: 3rem;
    }
}

/* ============================================
   LANDINGPAGE STYLES
   ============================================ */

.landing-page {
    position: relative;
    min-height: 100vh;
    padding: 6rem 1rem 2rem;
    width: 100%;
}

.landing-header {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
}

.login-link-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 20px;
    border: 2px solid var(--border-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.login-link-small:hover {
    background: var(--primary-lightest);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-link-small ion-icon {
    font-size: 1.1rem;
}

.landing-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.landing-logo {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.landing-logo .logo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.landing-logo h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin: 0;
    color: var(--text-primary);
}

.landing-logo span {
    color: var(--primary);
    font-weight: 600;
}

.landing-tagline {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.landing-hero {
    margin-bottom: 4rem;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-card ion-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.landing-cta {
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-button ion-icon {
    font-size: 1.5rem;
}

.cta-hint {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.landing-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-light);
    font-size: 0.85rem;
}

.landing-footer p {
    margin: 0 0 0.75rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links .separator {
    color: var(--border-light);
}

/* Privacy Section Styles */
.privacy-section {
    margin: 4rem 0;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.privacy-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.privacy-title ion-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.privacy-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.privacy-card {
    background: var(--bg-subtle);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.privacy-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.privacy-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.privacy-card-header ion-icon {
    font-size: 2rem;
    color: var(--primary);
}

.privacy-card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.privacy-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
}

.privacy-card p strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.privacy-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid var(--border-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.privacy-link:last-child {
    margin-bottom: 0;
}

.privacy-link:hover {
    background: var(--primary-lightest);
    border-color: var(--primary);
    transform: translateX(3px);
}

.privacy-link ion-icon:first-child {
    font-size: 1.2rem;
    color: var(--primary);
}

.privacy-link ion-icon:last-child {
    font-size: 1rem;
    margin-left: auto;
    opacity: 0.6;
}

.privacy-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Responsive Landingpage */
@media (max-width: 600px) {
    .landing-page {
        padding: 5rem 1rem 2rem;
    }
    
    .landing-header {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .login-link-small {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .landing-logo h1 {
        font-size: 2.5rem;
    }
    
    .landing-tagline {
        font-size: 1rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .landing-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    /* Upgrade Modal Styles */
    .upgrade-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--overlay-bg);
        backdrop-filter: blur(4px);
        z-index: 10000;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .upgrade-modal-content {
        background: var(--bg-card);
        border-radius: 20px;
        max-width: 500px;
        width: 100%;
        box-shadow: var(--shadow-xl);
        position: relative;
        animation: modalSlideIn 0.3s ease-out;
    }
    
    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .upgrade-modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        color: var(--text-muted);
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s;
        z-index: 1;
    }
    
    .upgrade-modal-close:hover {
        background: var(--bg-accent);
        color: var(--text-primary);
    }
    
    .upgrade-modal-header {
        text-align: center;
        padding: 2rem 2rem 1rem;
        border-bottom: 2px solid var(--border-subtle);
    }
    
    .upgrade-icon {
        font-size: 3rem;
        color: var(--primary);
        margin-bottom: 1rem;
    }
    
    .upgrade-modal-header h2 {
        margin: 0;
        color: var(--text-primary);
        font-size: 1.8rem;
    }
    
    .upgrade-modal-body {
        padding: 2rem;
    }
    
    .upgrade-text {
        text-align: center;
        color: var(--text-secondary);
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .upgrade-features {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .upgrade-feature {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem;
        background: var(--bg-subtle);
        border-radius: 10px;
    }
    
    .upgrade-feature ion-icon {
        font-size: 1.5rem;
        color: var(--primary);
        flex-shrink: 0;
    }
    
    .upgrade-feature span {
        color: var(--text-primary);
        font-weight: 500;
    }
    
    .upgrade-price {
        text-align: center;
        margin-bottom: 2rem;
        padding: 1.5rem;
        background: var(--primary-lightest);
        border-radius: 12px;
    }
    
    .price-amount {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--primary-dark);
    }
    
    .price-period {
        font-size: 1rem;
        color: var(--text-secondary);
        margin-left: 0.5rem;
    }
    
    .upgrade-button {
        width: 100%;
        padding: 1rem;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .upgrade-button:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
    
    .upgrade-button ion-icon {
        font-size: 1.3rem;
    }
    
    @media (max-width: 600px) {
        .upgrade-modal-content {
            max-width: 100%;
            margin: 0 1rem;
        }
        
        .upgrade-modal-header {
            padding: 1.5rem 1.5rem 1rem;
        }
        
        .upgrade-modal-body {
            padding: 1.5rem;
        }
        
        .upgrade-icon {
            font-size: 2.5rem;
        }
        
        .upgrade-modal-header h2 {
            font-size: 1.5rem;
        }
        
        .price-amount {
            font-size: 2rem;
        }
    }
    
    /* Privacy Section Responsive */
    .privacy-section {
        margin: 3rem 0;
        padding: 2rem 1.5rem;
    }
    
    .privacy-title {
        font-size: 1.5rem;
    }
    
    .privacy-title ion-icon {
        font-size: 2rem;
    }
    
    .privacy-intro {
        font-size: 0.95rem;
    }
    
    .privacy-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .privacy-card {
        padding: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .footer-links .separator {
        display: none;
    }
}

/* ============================================
   VIDEO GALLERY STYLES
   ============================================ */

.video-gallery-section {
    margin: 3rem 0;
    padding: 0 1rem;
}

.gallery-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem;
}

.gallery-title ion-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.video-gallery-container {
    width: 100%;
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1rem;
}

.video-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.video-gallery::-webkit-scrollbar {
    height: 8px;
}

.video-gallery::-webkit-scrollbar-track {
    background: var(--bg-subtle);
    border-radius: 4px;
}

.video-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.video-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.video-item {
    flex-shrink: 0;
    width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-caption {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
}

.video-thumbnail {
    position: relative;
    width: 120px;
    height: 213px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-light);
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-item:hover .video-thumbnail {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.video-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-fallback-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.3;
}

.video-fallback-icon ion-icon {
    font-size: 4rem;
    color: var(--primary-lightest);
}

.video-thumb-img[src*="youtube"] {
    background: transparent;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.video-item:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-overlay ion-icon {
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.video-item:hover .play-overlay ion-icon {
    transform: scale(1.2);
}

/* Video Fullscreen Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal iframe {
    width: 56.25vh;
    max-width: 90vw;
    height: 100vh;
    max-height: 90vh;
    border: none;
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.video-modal-close ion-icon {
    font-size: 1.8rem;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 600px) {
    .gallery-title {
        font-size: 1.3rem;
    }
    
    .video-item {
        width: 100px;
    }
    
    .video-thumbnail {
        width: 100px;
        height: 178px;
    }
    
    .play-overlay ion-icon {
        font-size: 2.5rem;
    }
    
    .video-modal iframe {
        max-width: 100%;
    }
}

