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

body {
    min-height: 100vh;
    background: #0a0a0a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #f4f4ff;
    overflow-x: hidden;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loading-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a855f7 50%, #6366f1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.loading-text {
    color: #c1c1d8;
    font-size: 1.1rem;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #2a2a2a;
    border-top: 2px solid #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Vault Icon */
.vault-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vault-icon.small {
    width: 32px;
    height: 32px;
}

.vault-icon:not(.small):not(.large) {
    width: 80px;
    height: 80px;
}

.vault-icon.large {
    width: 120px;
    height: 120px;
}

.vault-body {
    width: 100%;
    height: 60%;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border-radius: 12% 12% 8% 8%;
    position: relative;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3);
}

.vault-icon.small .vault-body {
    border-radius: 4px 4px 2px 2px;
}

.vault-lock {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 45%;
    border: 3px solid #ffd700;
    border-radius: 50% 50% 0 0;
    background: transparent;
}

.vault-icon.small .vault-lock {
    border-width: 2px;
}

/* Auth Gate */
.auth-gate {
    min-height: 100vh;
    background: radial-gradient(circle at top, #121520 0%, #0a0a0a 60%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-container {
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.auth-hero {
    margin-bottom: 48px;
}

.auth-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a855f7 50%, #6366f1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    margin: 24px 0 12px;
}

.auth-tagline {
    font-size: 1.3rem;
    color: #c1c1d8;
    margin-bottom: 8px;
}

.auth-description {
    color: #8b8ba0;
    font-size: 1rem;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    background: #fff;
    color: #1f2937;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.google-signin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Main App */
.main-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: rgba(26, 26, 26, 0.8);
    border-bottom: 1px solid #2a2a2a;
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a855f7 50%, #6366f1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-email {
    color: #c1c1d8;
    font-size: 0.9rem;
}

.sign-out-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #c1c1d8;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sign-out-btn:hover {
    border-color: #a855f7;
    color: #a855f7;
}

/* Dashboard */
.dashboard {
    flex: 1;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 40px 24px;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #a855f7 50%, #6366f1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Status Section */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.status-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
}

.status-card:hover {
    border-color: #3a3a3a;
    transform: translateY(-2px);
}

.status-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.status-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f8f8ff;
    margin-bottom: 12px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.status-dot.connected {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-text {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 500;
}

.backup-info {
    font-size: 0.85rem;
    color: #8b8ba0;
}

/* Storage Section */
.storage-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.storage-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.stat-label {
    font-size: 0.9rem;
    color: #8b8ba0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f8f8ff;
}

.storage-breakdown h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #f8f8ff;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}

.breakdown-label {
    color: #c1c1d8;
    font-size: 0.9rem;
}

.breakdown-value {
    color: #f8f8ff;
    font-weight: 600;
}

/* Kenosis Section */
.export-section {
    margin-bottom: 48px;
}

.kenosis-intro {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
}

.kenosis-philosophy {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f4f4ff;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.kenosis-description {
    color: #c1c1d8;
    line-height: 1.6;
    font-style: italic;
}

.kenosis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.kenosis-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kenosis-card:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.kenosis-card.warning {
    border-color: #f59e0b;
}

.kenosis-card.warning:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.1);
}

.kenosis-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.kenosis-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f4f4ff;
    margin-bottom: 8px;
}

.kenosis-card p {
    color: #c1c1d8;
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.kenosis-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.kenosis-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.kenosis-btn:active {
    transform: translateY(0);
}

.kenosis-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.kenosis-btn.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.kenosis-btn.primary:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.kenosis-btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.kenosis-btn.danger:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.schedule-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.schedule-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.schedule-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #6366f1;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.schedule-status {
    color: #c1c1d8;
    font-size: 0.9rem;
}

.btn-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
}

/* History Section */
.history-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 24px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.history-icon {
    font-size: 1.2rem;
}

.history-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.history-action {
    color: #f8f8ff;
    font-weight: 500;
}

.history-time {
    color: #8b8ba0;
    font-size: 0.8rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 12px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
    backdrop-filter: blur(16px);
}

.toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
    }
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
}

.progress-content {
    text-align: center;
}

.progress-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.progress-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f8f8ff;
}

.progress-description {
    color: #8b8ba0;
    margin-bottom: 24px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #c1c1d8;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard {
        padding: 24px 16px;
    }
    
    .dashboard-content {
        gap: 32px;
    }
    
    .storage-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .export-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        padding: 12px 16px;
    }
    
    .user-info {
        gap: 12px;
    }
    
    .user-email {
        display: none;
    }
    
    .auth-title {
        font-size: 2.5rem;
    }
    
    .toast-container {
        right: 16px;
        left: 16px;
    }
    
    .toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .modal-content {
        padding: 24px;
    }
}

/* Kenotic Breathing Styles */
.confirm-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.confirm-icon {
    font-size: 3rem;
    color: #f59e0b;
}

.confirm-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f4f4ff;
}

.confirm-description {
    color: #c1c1d8;
    line-height: 1.6;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.confirm-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-btn.secondary {
    background: #2a2a2a;
    color: #f4f4ff;
    border: 1px solid #3a3a3a;
}

.confirm-btn.secondary:hover {
    background: #3a3a3a;
}

.confirm-btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.confirm-btn.danger:hover {
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.progress-icon {
    animation: breathe 3s ease-in-out infinite;
}

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