:root {
    --profile-bg: radial-gradient(circle at top right, rgba(213, 45, 116, 0.12), transparent 22%),
                  radial-gradient(circle at left 20%, rgba(54, 79, 134, 0.14), transparent 18%),
                  linear-gradient(180deg, #05070b 0%, #080b12 100%);
    --glass-bg: var(--panel);
    --glass-border: var(--line);
    --glass-shadow: var(--shadow-xl);
    --sy-accent: var(--accent);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.password-input-wrapper input {
    width: 100% !important;
    padding-right: 48px !important;
    box-sizing: border-box !important;
}
.toggle-password-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10;
}
.toggle-password-btn:hover {
    color: var(--sy-accent);
}


/* OAuth Divider & Google Button */
.oauth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}
.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--line);
}
.oauth-divider:not(:empty)::before {
    margin-right: .8em;
}
.oauth-divider:not(:empty)::after {
    margin-left: .8em;
}

.google-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.google-custom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.google-custom-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}
.google-custom-btn:active {
    transform: translateY(0);
}

/* Google Simulator Modal */
.sim-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sim-modal-card {
    background: var(--panel-strong);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    width: 90%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    position: relative;
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sim-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 700;
}
.sim-modal-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}
.sim-modal-close:hover {
    color: #ffffff;
}
.sim-modal-desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.5;
}
.sim-avatar-selector {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.sim-avatar-option input {
    display: none;
}
.sim-avatar-circle {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.08);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sim-avatar-option input:checked + .sim-avatar-circle {
    border-color: #4285F4;
    transform: scale(1.12);
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.45);
}
#googleBtnLogin {
    max-width: 100%;
    overflow: clip;
}

body.profile-body {
    background: var(--profile-bg);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.profile-main-content {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

.profile-container {
    width: 100%;
    max-width: 480px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: var(--glass-shadow);
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.profile-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,46,99,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.profile-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.profile-logo {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--sy-accent) 0%, #ff758f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.profile-logo:hover {
    transform: scale(1.05);
}

.profile-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Tabs styling */
.profile-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.profile-tab {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-tab.active {
    background: var(--sy-accent);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 46, 99, 0.3);
}

/* Form styling */
.profile-form-view {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input, .form-group select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--sy-accent);
    box-shadow: 0 0 10px rgba(255, 46, 99, 0.15);
    background: rgba(0, 0, 0, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, var(--sy-accent) 0%, #ff758f 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 46, 99, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 46, 99, 0.45);
}

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

.submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.back-link:hover {
    color: #ffffff;
}

.error-message {
    background: rgba(255, 46, 99, 0.1);
    border: 1px solid rgba(255, 46, 99, 0.2);
    color: #ff2e63;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
    text-align: center;
    font-weight: 500;
}

/* Premium Photo Grid styles */
.profile-photos-grid-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

.profile-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
}

.photo-slot {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.03);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.photo-slot:hover {
    border-color: var(--sy-accent);
    background-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 46, 99, 0.15);
}

.photo-slot-active {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.15);
    background-size: cover;
    background-position: center;
}

.photo-slot-active:hover {
    border-color: var(--sy-accent);
}

.photo-slot-main {
    border-color: var(--sy-accent);
    box-shadow: 0 4px 20px rgba(255, 46, 99, 0.25);
}

.photo-slot-plus {
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease, transform 0.3s ease;
}

.photo-slot:hover .photo-slot-plus {
    color: var(--sy-accent);
    transform: scale(1.1);
}

.photo-slot-hint {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.photo-slot:hover .photo-slot-hint {
    color: rgba(255, 255, 255, 0.7);
}

.photo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(5, 7, 11, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.photo-delete-btn:hover {
    background: #ff3b30;
    border-color: #ff3b30;
    transform: scale(1.1);
}

.photo-main-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--sy-accent);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255, 46, 99, 0.4);
}

.avatar-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    max-width: 90%;
}

.user-meta-bar {
    text-align: center;
    margin-bottom: 25px;
}

.user-meta-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.user-meta-email {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin: 4px 0 0 0;
}

.logout-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    border-color: rgba(255, 46, 99, 0.4);
    color: #ff2e63;
    background: rgba(255, 46, 99, 0.05);
}

/* Toast notifications */
.profile-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(14, 13, 19, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.profile-toast-icon {
    color: #00e676;
    display: inline-flex;
}

.profile-toast-icon.error {
    color: #ff2e63;
}

/* Active pass overlay details */
.live-pass-status-card {
    background: rgba(255, 46, 99, 0.06);
    border: 1px solid rgba(255, 46, 99, 0.15);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.live-pass-status-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--sy-accent);
}

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

.live-pass-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--sy-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-pass-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sy-accent);
    animation: pulse-ring 1.5s infinite;
}

.live-pass-location {
    font-size: 0.95rem;
    font-weight: 700;
}

.live-pass-timer {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 46, 99, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 46, 99, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 46, 99, 0); }
}

.hidden {
    display: none !important;
}

.loading-spinner {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-left-color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 0.8s linear infinite;
    display: none;
}

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

.delete-account-btn:hover {
    background: rgba(255, 59, 48, 0.1) !important;
    border-color: #ff453a !important;
    color: #ff453a !important;
}

.delete-account-btn:active {
    transform: scale(0.98);
}



