:root {
    --bg-main: #020617;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --border: #e2e8f0;
    --input-bg: #f8fafc;
    --radius: 16px;
    --accent: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body { background-color: var(--bg-main); color: var(--text-main); height: 100vh; overflow: hidden; -webkit-font-smoothing: antialiased; }

.split-layout { display: flex; height: 100vh; width: 100vw; }

.hero-section { flex: 1.2; position: relative; display: flex; flex-direction: column; justify-content: center; padding: 80px; background: radial-gradient(circle at 0% 0%, #1e1b4b 0%, #020617 100%); color: white; overflow: hidden; }

.hero-section::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 50%); pointer-events: none; }

.hero-content { max-width: 540px; z-index: 2; }

.badge { display: inline-flex; align-items: center; padding: 8px 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 30px; font-size: 13px; font-weight: 600; color: #818cf8; margin-bottom: 32px; backdrop-filter: blur(10px); }

.hero-content h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.02em; }

.subtitle { font-size: 18px; color: #94a3b8; line-height: 1.6; margin-bottom: 48px; font-weight: 400; }

.features-list { list-style: none; display: flex; flex-direction: column; gap: 32px; }
.features-list li { display: flex; flex-direction: column; }
.features-list strong { font-size: 18px; font-weight: 600; margin-bottom: 6px; color: #f8fafc; }
.features-list span { color: #94a3b8; font-size: 15px; line-height: 1.5; }

.auth-section { width: 520px; background: var(--bg-card); display: flex; flex-direction: column; justify-content: center; padding: 60px; box-shadow: -20px 0 40px rgba(0,0,0,0.2); z-index: 10; position: relative; }

.auth-card { width: 100%; max-width: 380px; margin: 0 auto; }
.auth-card h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; color: var(--text-main); }
.auth-card > p { color: var(--text-muted); margin-bottom: 40px; font-size: 16px; }

.form-group { margin-bottom: 24px; position: relative; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #475569; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input { width: 100%; padding: 16px; background: var(--input-bg); border: 1px solid transparent; border-radius: 12px; font-size: 15px; color: var(--text-main); outline: none; transition: all 0.3s ease; }
.form-group input::placeholder { color: #94a3b8; }
.form-group input:focus { background: white; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }

.submit-btn { width: 100%; padding: 16px; background: var(--primary); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 16px; transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2); }
.submit-btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3); }

.card-footer { text-align: center; margin-top: 32px; font-size: 15px; color: var(--text-muted); }
.card-footer a { color: var(--primary); text-decoration: none; font-weight: 600; transition: color 0.2s; margin-left: 6px; }
.card-footer a:hover { color: var(--primary-hover); text-decoration: underline; }

.toast-container { position: fixed; bottom: 32px; right: 32px; z-index: 9999; display: flex; flex-direction: column; gap: 16px; }
.toast { background: white; border-radius: 16px; padding: 20px 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); border-left: 5px solid var(--primary); transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; gap: 6px; cursor: pointer; min-width: 300px; max-width: 400px; }
.toast.show { transform: translateX(0); }
.toast.error { border-left-color: #ef4444; }
.toast.success { border-left-color: #10b981; }
.toast-title { font-weight: 800; font-size: 15px; color: var(--primary); }
.toast-text { font-size: 14px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chat-img { max-width: 250px; border-radius: 12px; cursor: pointer; margin-top: 8px; display: block; border: 1px solid var(--border); transition: 0.2s; }
.chat-img:hover { opacity: 0.9; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.attach-btn { background: #f8fafc; color: var(--text-muted); border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.attach-btn:hover { background: #e2e8f0; color: var(--primary); }
.img-preview { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }

.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 16px; }
.platform-card { background: white; border: 2px solid var(--border); border-radius: 16px; padding: 16px; text-align: center; cursor: pointer; transition: 0.2s; position: relative; overflow: hidden; }
.platform-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.platform-card.selected { border-color: var(--accent); background: #f0fdf4; }
.platform-card img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 12px; border-radius: 12px; }
.platform-card .p-name { font-weight: 700; font-size: 15px; color: var(--text-main); margin-bottom: 4px; }
.platform-card .p-price { font-size: 13px; font-weight: 600; color: var(--accent); }
.platform-display { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; cursor: pointer; transition: 0.2s; }
.platform-display:hover { border-color: var(--primary); }
.platform-display img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.platform-display-info { display: flex; flex-direction: column; }
.platform-display-name { font-weight: 700; font-size: 15px; }
.platform-display-price { font-size: 13px; color: var(--text-muted); }
.platform-modal-content { background: white; width: 600px; max-height: 80vh; overflow-y: auto; border-radius: 24px; padding: 32px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); display: flex; flex-direction: column; }

@media (max-width: 768px) {
    .split-layout { flex-direction: column; height: auto; min-height: 100vh; overflow: auto; }
    .hero-section { padding: 40px 24px; flex: none; }
    .hero-content h1 { font-size: 36px; margin-bottom: 16px; }
    .subtitle { font-size: 16px; margin-bottom: 32px; }
    .features-list { gap: 24px; }
    .auth-section { width: 100%; padding: 40px 24px; flex: 1; box-shadow: none; border-radius: 24px 24px 0 0; margin-top: -20px; z-index: 10; }
    .auth-card { max-width: 100%; }
    .toast-container { right: 16px; bottom: 16px; left: 16px; align-items: center; }
    .toast { min-width: auto; width: 100%; max-width: 100%; padding: 16px; }
    .platform-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .platform-modal-content { width: 92%; padding: 20px; }
    .chat-img { max-width: 100%; }
}