:root {
    --navy: #1a2332;
    --navy2: #243044;
    --gold: #c89b4a;
    --gold-l: #e6b96a;
    --cream: #f7f4ef;
    --warm: #ede9e1;
    --white: #ffffff;
    --text: #1a2332;
    --muted: #6b7a8d;
    --border: #dfe4ea;
    --danger: #b3452c;
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'DM Sans', -apple-system, sans-serif;
    --r: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--cream); }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0 0 8px; }
button, input, select, textarea { font-family: var(--sans); font-size: 14px; }

.topnav { background: var(--navy); color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; height: 60px; }
.topnav .brand { color: white; text-decoration: none; font-family: var(--serif); font-size: 20px; display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 34px; width: 34px; object-fit: cover; border-radius: 50%; }
.topnav .brand span { color: var(--gold-l); }
.nav-links a { color: #cdd6e0; text-decoration: none; margin-left: 22px; font-size: 14px; }
.nav-links a:hover { color: white; }

.page { max-width: 1200px; margin: 0 auto; padding: 28px; }
.center-page { max-width: 420px; margin: 80px auto; }

.card { background: white; border: 1px solid var(--border); border-radius: var(--r); padding: 22px 24px; }
.btn { display: inline-block; background: var(--navy); color: white; border: none; padding: 11px 18px; border-radius: var(--r); font-size: 14px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--navy2); }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 600; }
.btn-gold:hover { background: var(--gold-l); }
.btn:disabled { opacity: .5; cursor: default; }

label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=password], input[type=file], select {
    width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--r); background: white; color: var(--text);
}
.field { margin-bottom: 14px; }
.muted { color: var(--muted); }
.error-msg { color: var(--danger); font-size: 13px; margin-top: 6px; }

.tabs { display: flex; gap: 4px; margin: 20px 0 16px; border-bottom: 1px solid var(--border); }
.tab-btn { background: none; border: none; padding: 10px 18px; cursor: pointer; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }
.tab-btn:hover { color: var(--navy); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.photo-item { position: relative; border-radius: var(--r); overflow: hidden; background: white; border: 1px solid var(--border); }
.photo-item img { width: 100%; height: 140px; object-fit: cover; display: block; }
.photo-item .btn-delete {
    position: absolute; top: 6px; right: 6px; background: rgba(26,35,50,.75); color: white; border: none;
    border-radius: 50%; width: 26px; height: 26px; cursor: pointer; font-size: 15px; line-height: 1;
}
.photo-item .btn-delete:hover { background: var(--danger); }

.pair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pair-item { position: relative; border-radius: var(--r); overflow: hidden; background: white; border: 1px solid var(--border); }
.pair-item .pair-imgs { display: flex; }
.pair-item .pair-imgs > div { flex: 1; position: relative; }
.pair-item img { width: 100%; height: 140px; object-fit: cover; display: block; }
.pair-item .pair-lbl { position: absolute; bottom: 6px; left: 6px; background: rgba(26,35,50,.75); color: white; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; padding: 2px 7px; border-radius: 4px; }
.pair-item .btn-delete {
    position: absolute; top: 6px; right: 6px; background: rgba(26,35,50,.75); color: white; border: none;
    border-radius: 50%; width: 26px; height: 26px; cursor: pointer; font-size: 15px; line-height: 1;
}
.pair-item .btn-delete:hover { background: var(--danger); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); grid-column: 1 / -1; }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--navy); color: white; padding: 12px 18px; border-radius: var(--r); font-size: 14px; z-index: 60; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
