/* ===========================================
   Masis Estate - Combined Stylesheet
   =========================================== */

/* ===========================================
   CSS Variables
   =========================================== */
:root {
    --main-color: #0a0f1a;
    --main-color-light: #131b2e;
    --main-color-lighter: #243a5a;
    --accent-color: #d4a853;
    --accent-color-light: #ddc588;
    --accent-color-dark: #a68b3d;
    --accent-glow: rgba(212, 168, 83, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-light: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --text-subtle: #5a6d85;
    --card-bg: rgba(19, 27, 46, 0.95);
    --card-lighter: rgba(30, 42, 66, 0.8);
    --input-bg: rgba(10, 15, 26, 0.6);
    --input-border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --success-color: #27ae60;
    --danger: #ef4444;
    --error-color: #e74c3c;
}

/* ===========================================
   Base Styles
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--main-color);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===========================================
   Login Page Styles
   =========================================== */

/* Geometric background pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(var(--accent-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-color) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* Animated gradient orb */
.bg-orb {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-1 {
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    top: -400px;
    right: -200px;
}

.bg-orb-2 {
    background: radial-gradient(circle, var(--main-color-lighter) 0%, transparent 70%);
    bottom: -400px;
    left: -200px;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, 30px) scale(1.05); }
    50% { transform: translate(0, 50px) scale(1); }
    75% { transform: translate(-30px, 20px) scale(0.95); }
}

/* Main container */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Left panel - Decorative */
.left-panel {
    flex: 1;
    display: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-light) 100%);
}

@media (min-width: 1024px) {
    .left-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 60px;
    }
}

.left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a961' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Decorative lines */
.decorative-lines {
    position: absolute;
    top: 0;
    left: 60px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--accent-color) 20%, var(--accent-color) 80%, transparent);
    opacity: 0.3;
}

.decorative-lines::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--accent-color) 30%, var(--accent-color) 70%, transparent);
    opacity: 0.2;
}

/* Brand content */
.brand-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin-left: 60px;
}

.brand-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.brand-tagline span {
    color: var(--accent-color);
    font-style: italic;
}

.brand-description {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 400px;
}

/* Stats section */
.stats-container {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.stat-item {
    opacity: 0;
    animation: statFadeIn 0.8s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.3s; }
.stat-item:nth-child(2) { animation-delay: 0.5s; }
.stat-item:nth-child(3) { animation-delay: 0.7s; }

@keyframes statFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 8px;
}

/* Right panel - Login form */
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vh, 40px) 20px;
    position: relative;
}

@media (min-width: 1024px) {
    .right-panel {
        max-width: 600px;
        padding: 60px;
    }
}

.login-container {
    width: 100%;
    max-width: 400px;
    opacity: 0;
    animation: slideUp 0.8s ease 0.2s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo-container {
    margin-bottom: clamp(16px, 3vh, 40px);
    text-align: center;
}

.logo-image {
    max-width: clamp(120px, 25vh, 280px);
    height: auto;
}

/* Login header */
.login-header {
    margin-bottom: clamp(20px, 3vh, 40px);
    text-align: center;
}

.login-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.login-subtitle {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 300;
    color: var(--text-muted);
}

/* Login Form styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.5vh, 24px);
}

.login-form .form-group {
    position: relative;
    margin-bottom: 0;
}

.login-form .form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.form-input-wrapper {
    position: relative;
}

.login-form .form-input {
    width: 100%;
    padding: clamp(12px, 2vh, 16px) 20px;
    padding-left: 52px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.login-form .form-input::placeholder {
    color: var(--text-subtle);
    font-weight: 300;
}

.login-form .form-input:hover {
    border-color: rgba(201, 169, 97, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.login-form .form-input:focus {
    border-color: var(--accent-color);
    background: rgba(201, 169, 97, 0.05);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-subtle);
    transition: color 0.3s ease;
    pointer-events: none;
}

.login-form .form-input:focus ~ .form-icon {
    color: var(--accent-color);
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-subtle);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--accent-color);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* Remember me & Forgot password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-custom svg {
    width: 10px;
    height: 10px;
    color: var(--main-color);
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.checkbox-input:checked + .checkbox-custom svg {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.forgot-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.forgot-link:hover::after {
    width: 100%;
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: clamp(14px, 2vh, 18px) 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--main-color);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: clamp(4px, 1vh, 8px);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

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

/* PassKey button */
.passkey-btn {
    width: 100%;
    padding: clamp(12px, 2vh, 16px) 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-light);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.passkey-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.passkey-btn i {
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.passkey-btn:hover {
    color: var(--main-color);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.passkey-btn:hover::before {
    left: 100%;
}

.passkey-btn:hover i {
    color: var(--main-color);
}

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

/* Register link */
.register-link-container {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: clamp(16px, 2vh, 24px);
    padding-top: clamp(16px, 2vh, 24px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.register-link-container.visible {
    display: flex;
}

.register-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.register-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.register-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.register-link:hover::after {
    width: 100%;
}

/* Loading state */
.submit-btn.loading {
    pointer-events: none;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--main-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.divider span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Login Footer */
.login-footer {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-text {
    font-size: 0.75rem;
    color: var(--text-subtle);
    line-height: 1.6;
}

.footer-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
}

/* Corner decoration */
.corner-decoration {
    position: fixed;
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 0;
}

.corner-decoration.top-right {
    top: -50px;
    right: -50px;
    border: 1px solid rgba(201, 169, 97, 0.1);
    border-radius: 50%;
}

.corner-decoration.bottom-left {
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(201, 169, 97, 0.05);
    border-radius: 50%;
}

/* Error state */
.form-input.error {
    border-color: var(--error-color);
    background: rgba(231, 76, 60, 0.05);
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    font-size: 0.75rem;
    color: var(--error-color);
    margin-top: 8px;
    display: none;
}

.form-group.has-error .error-message {
    display: block;
}

/* Success animation */
@keyframes successPulse {
    0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.form-input.success {
    border-color: var(--success-color);
    animation: successPulse 1s ease;
}

/* ===========================================
   UCP (User Control Panel) Styles
   =========================================== */

/* Animated Background */
.bg-animated {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 168, 83, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(19, 27, 46, 0.8) 0%, transparent 60%);
    animation: bgPulse 20s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-2%, -2%) scale(1.05); }
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 15s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: -200px;
    right: 10%;
    opacity: 0.15;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #1e3a5f;
    bottom: -100px;
    left: 5%;
    animation-delay: -7s;
    opacity: 0.4;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 50%;
    left: 30%;
    opacity: 0.08;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(5deg); }
    66% { transform: translateY(20px) rotate(-5deg); }
}

/* Main Layout */
.app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navigation Bar */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.brand:hover {
    opacity: 0.9;
}

.brand-logo {
    height: 56px;
    width: auto;
}

.brand-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-color), #b8942e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--main-color);
}

.user-details {
    text-align: left;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logout-btn {
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    display: flex;
    padding: 30px 40px;
    gap: 30px;
}

/* Side Navigation */
.side-nav {
    width: 280px;
    flex-shrink: 0;
}

.nav-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

.nav-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    padding-left: 12px;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-color), #b8942e);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.nav-item.active {
    color: var(--main-color);
    font-weight: 600;
}

.nav-item.active::before {
    opacity: 1;
}

.nav-item.active .nav-icon {
    color: var(--main-color);
}

.nav-icon {
    width: 20px;
    font-size: 1rem;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.nav-text {
    font-size: 0.9rem;
}

.nav-badge {
    margin-left: auto;
    padding: 4px 10px;
    background: rgba(212, 168, 83, 0.2);
    color: var(--accent-color);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.nav-item.active .nav-badge {
    background: rgba(10, 15, 26, 0.2);
    color: var(--main-color);
}

/* Content Area */
.content-area {
    flex: 1;
    min-width: 0;
}

.content-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.4);
}

.content-header {
    padding: 32px 40px;
    background: linear-gradient(135deg, rgba(30, 42, 66, 0.6) 0%, rgba(19, 27, 46, 0.8) 100%);
    border-bottom: 1px solid var(--glass-border);
}

.content-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.content-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.content-body {
    padding: 40px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.info-card {
    padding: 20px 24px;
    background: var(--card-lighter);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.info-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.info-value.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
}

.info-value.status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Form Styles */
.form-section {
    margin-bottom: 32px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--accent-color);
}

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

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group.full {
    grid-column: span 2;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    padding: 14px 18px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(10, 15, 26, 0.8);
    box-shadow: 0 0 0 4px rgba(212, 168, 83, 0.15);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' fill-opacity='0.5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.form-select option {
    background: var(--main-color);
    color: var(--text-primary);
    padding: 12px;
}

/* Security Page Styles */
.security-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.authenticator-setup {
    margin-bottom: 28px;
    padding: 24px;
    background: var(--card-lighter);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.setup-instructions {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.qr-code {
    width: 200px;
    height: 200px;
    padding: 12px;
    background: white;
    border-radius: 12px;
}

.manual-key {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.manual-key strong {
    color: var(--accent-color);
    font-family: monospace;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

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

@media (min-width: 768px) {
    .form-group-inline {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .form-group-inline .form-label {
        min-width: 220px;
        margin-bottom: 0;
    }

    .form-group-inline .form-input {
        flex: 1;
    }
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #b8942e);
    color: var(--main-color);
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 83, 0.4);
}

.btn-secondary {
    background: var(--card-lighter);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: #ef4444;
    color: white;
}

/* Toggle Cards */
.toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--card-lighter);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.toggle-card:hover {
    border-color: var(--accent-color);
}

.toggle-card:last-child {
    margin-bottom: 0;
}

.toggle-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toggle-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--accent-color), #b8942e);
}

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

/* Passkey Items */
.passkey-grid {
    display: grid;
    gap: 16px;
}

.passkey-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--card-lighter);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.passkey-card:hover {
    transform: translateX(4px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.passkey-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-color), #b8942e);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.passkey-icon i {
    font-size: 1.4rem;
    color: var(--main-color);
}

.passkey-details {
    flex: 1;
}

.passkey-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.passkey-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.passkey-delete {
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.passkey-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* PassKey Table Styles */
.passkey-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.passkey-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.passkey-table-header {
    display: flex;
    background: var(--card-lighter);
    border-bottom: 1px solid var(--glass-border);
}

.passkey-table-header .passkey-table-cell {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.passkey-table-row {
    display: flex;
    background: rgba(30, 42, 66, 0.4);
    border-bottom: 1px solid var(--glass-border);
}

.passkey-table-row:last-child {
    border-bottom: none;
}

.passkey-table-cell {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.passkey-table-actions {
    flex: 0 0 150px;
    align-items: flex-end;
}

.passkey-device-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.passkey-device-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.passkey-empty .passkey-table-cell {
    color: var(--text-muted);
    font-style: italic;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .passkey-table-row {
        flex-direction: column;
    }

    .passkey-table-actions {
        flex: 1;
        align-items: flex-start;
        padding-top: 0;
    }
}

/* Favorites Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.property-card {
    background: var(--card-lighter);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.property-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--accent-color), #b8942e);
    color: var(--main-color);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.property-favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s ease;
}

.property-favorite:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.property-content {
    padding: 20px;
}

.property-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.property-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.property-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Alert Card */
.alert-card {
    padding: 24px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.alert-card.danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-card.danger .alert-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.alert-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.alert-card.danger .alert-content h4 {
    color: #ef4444;
}

.alert-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.app-footer {
    padding: 24px 40px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 15, 26, 0.5);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-brand {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.footer-dev {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-dev img {
    height: 30px;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-dev:hover img {
    opacity: 0.8;
}

/* ===========================================
   Responsive Styles
   =========================================== */
@media (max-width: 1100px) {
    .main-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .side-nav {
        width: 100%;
    }

    .nav-card {
        position: static;
    }

    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-item {
        flex: 1;
        min-width: 150px;
        justify-content: center;
    }

    .info-grid,
    .form-grid,
    .favorites-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 16px 20px;
    }

    .brand-name {
        display: none;
    }

    .user-details {
        display: none;
    }

    .content-header,
    .content-body {
        padding: 24px;
    }

    .btn-group {
        flex-direction: column;
    }
}
