:root {
    --bg: #faf9f6;
    --bg-primary: #faf9f6;
    --bg-secondary: #f4f3ef;
    --bg-tertiary: #ebeae4;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    
    --text: #1a1a1a;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    
    --accent: #c9a96e;
    --accent-gold: #c9a96e;
    
    --border: #e6e4de;
    --border-color: #e6e4de;
    
    --error: #d32f2f;
    --success: #388e3c;
    --warning: #f57c00;
    
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --radius: 8px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; }
h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--text);
    color: var(--bg);
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--text-secondary); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary.full-width { width: 100%; text-align: center; }

.btn-outline {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
}
.btn-outline:hover { border-color: var(--text); }
.btn-outline.full-width { width: 100%; text-align: center; }

input, textarea, select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--text);
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.screen { display: none; min-height: 100vh; padding-top: 70px; }
.screen.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loader {
    position: fixed; inset: 0; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 0.5s;
}
.loader h1 { font-size: 3rem; letter-spacing: 0.2em; }
.loader-line {
    width: 100px; height: 1px; background: var(--text);
    margin: 1rem auto 0;
}

.toast-container {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 10000;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
    padding: 1rem 2rem; background: var(--bg-card); color: var(--text);
    border-left: 3px solid var(--accent); font-size: 0.9rem;
    animation: slideIn 0.3s ease; min-width: 250px;
}
.toast-error { border-color: var(--error); }
.toast-success { border-color: var(--success); }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
    .toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
}

.hidden {
    display: none !important;
}