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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0a0a0a;
    color: #f5f5f5;
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #be123c, #e11d48);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.3);
}

.btn-outline {
    background: transparent;
    color: #ccc;
    border: 1px solid #333;
}

.btn-outline:hover {
    border-color: #555;
    color: #fff;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 14px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
    font-size: 1.3rem;
}

.btn-like {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: #fff;
    width: 56px;
    height: 56px;
}

.btn-skip {
    background: #1e1e1e;
    border: 1px solid #333;
    color: #888;
    width: 56px;
    height: 56px;
}

.btn-block {
    width: 100%;
}

/* === LANDING === */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hero {
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(225,29,72,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #e11d48, #fb7185);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: #777;
    font-size: 1.05rem;
    max-width: 460px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
}

.stat span {
    font-size: 0.82rem;
    color: #666;
}

/* === FEATURES === */
.features {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    text-align: center;
}

.features h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 40px;
}

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

.feature-card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 32px 20px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: #333;
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(225,29,72,0.15), rgba(244,63,94,0.05));
    color: #f43f5e;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

/* === AUTH PAGES === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: #141414;
    border: 1px solid #222;
    border-radius: 24px;
    padding: 40px 32px;
}

.auth-box h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.auth-box .subtitle {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #999;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    color: #f5f5f5;
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e11d48;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.form-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #666;
}

.auth-footer a {
    color: #f43f5e;
    font-weight: 600;
}

/* === APP LAYOUT === */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.app-nav {
    display: flex;
    gap: 8px;
}

.app-nav a {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #777;
    transition: all 0.2s;
}

.app-nav a:hover,
.app-nav a.active {
    color: #f5f5f5;
    background: #1a1a1a;
}

.app-nav a.active {
    color: #f43f5e;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* === BROWSE / PROFILE CARDS === */
.profile-card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 24px;
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}

.profile-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: #1e1e1e;
}

.profile-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #1a1a1a, #222);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #333;
}

.profile-info {
    padding: 24px;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
}

.profile-name .age {
    font-weight: 400;
    color: #888;
}

.profile-city {
    font-size: 0.88rem;
    color: #666;
    margin-top: 4px;
}

.profile-job {
    font-size: 0.85rem;
    color: #888;
    margin-top: 2px;
}

.profile-bio {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 24px 28px;
}

/* === MATCHES LIST === */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.match-card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    display: block;
}

.match-card:hover {
    border-color: #333;
    transform: translateY(-2px);
}

.match-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #1e1e1e;
}

.match-info {
    padding: 14px 16px;
}

.match-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.match-city {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.match-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    margin-top: 8px;
}

/* === CHAT === */
.chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    border-bottom: 1px solid #1a1a1a;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e1e1e;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 65px);
}

.message {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-sent {
    align-self: flex-end;
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.message-received {
    align-self: flex-start;
    background: #1e1e1e;
    color: #f5f5f5;
    border-bottom-left-radius: 6px;
}

.message-time {
    font-size: 0.7rem;
    color: #555;
    margin-top: 4px;
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #1a1a1a;
    background: #0a0a0a;
}

.chat-input input {
    flex: 1;
    padding: 12px 18px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 100px;
    color: #f5f5f5;
    font-family: inherit;
    font-size: 0.9rem;
}

.chat-input input:focus {
    outline: none;
    border-color: #e11d48;
}

.chat-input button {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === PROFILE EDIT === */
.photo-upload {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.photo-slot {
    width: 100px;
    height: 130px;
    border-radius: 14px;
    border: 2px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
    position: relative;
}

.photo-slot:hover {
    border-color: #e11d48;
}

.photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-slot .plus {
    font-size: 1.5rem;
    color: #555;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

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

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    color: #666;
    font-size: 0.9rem;
}

/* === NOTIFICATION DOT === */
.notif-dot {
    width: 8px;
    height: 8px;
    background: #e11d48;
    border-radius: 50%;
    display: inline-block;
    margin-left: 4px;
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.82rem;
    color: #444;
    border-top: 1px solid #1a1a1a;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .hero { padding: 50px 20px 40px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 28px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .matches-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .landing-nav { padding: 16px 20px; }
    .auth-box { padding: 32px 24px; }
}

@media (max-width: 380px) {
    .feature-grid { grid-template-columns: 1fr; }
    .matches-grid { grid-template-columns: 1fr; }
}
