:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --secondary: #9c27b0;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-hover: #2a2a2a;
    --text: #ffffff;
    --text-light: #b0b0b0;
    --border: #333333;
    --success: #4caf50;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

.light-mode {
    --bg-dark: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f0;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --border: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography - Kompakt */
h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; }
h4 { font-size: 1.1rem; font-weight: 500; }

p { 
    font-size: 0.95rem; 
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-login {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-login:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(233, 30, 99, 0.1);
}

.btn-large { padding: 12px 28px; font-size: 1rem; }
.btn-xlarge { padding: 14px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* Header - Kompakt */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo i {
    color: var(--primary);
    font-size: 1.5rem;
}

.logo h1 {
    font-size: 1.3rem;
    margin: 0;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-hover);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }
    .header-actions .btn:not(.theme-toggle) {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-card);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--bg-hover);
    color: var(--primary);
}

.mobile-auth {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.hero-text h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-text > p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat .number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.stat .label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* AdSense Platzhalter */
.ad-container {
    margin: 2rem auto;
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
}

.ad-placeholder {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-hover));
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.ad-top .ad-placeholder {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-middle .ad-placeholder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 3rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Chat Section */
.chat-section {
    padding: 3rem 0;
    background: var(--bg-card);
}

.chat-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .chat-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.chat-text h2 {
    margin-bottom: 1rem;
}

.chat-features {
    list-style: none;
    margin-top: 1.5rem;
}

.chat-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.chat-features i {
    color: var(--success);
}

.chat-preview {
    background: var(--bg-dark);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.chat-mockup {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-user-info h4 {
    margin: 0;
    font-size: 1rem;
}

.online-status {
    font-size: 0.8rem;
    color: var(--success);
}

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

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 0.9rem;
    position: relative;
}

.message.received {
    background: var(--bg-hover);
    align-self: flex-start;
    border-bottom-right-radius: 5px;
}

.message.sent {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    align-self: flex-end;
    border-bottom-left-radius: 5px;
}

.message .time {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 4px;
    text-align: left;
}

.chat-input {
    display: flex;
    padding: 1rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: var(--bg-card);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    margin-right: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    background: var(--primary-dark);
}

/* Success Stories */
.success-stories {
    padding: 3rem 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.story-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.story-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-right: 1rem;
}

.story-content p::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.story-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.story-author h4 {
    margin: 0;
    font-size: 1rem;
}

.story-author span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Final CTA */
.final-cta {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.final-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Footer */
.site-footer {
    background: var(--bg-card);
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary);
}

.footer-section a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.footer-section p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Modals - Kompakt */
.modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 450px;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-content.compact {
    max-width: 400px;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-hover);
}

.modal-content h3 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.modal-description {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.modal-content .form-group {
    margin-bottom: 1rem;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-content select {
    cursor: pointer;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    color: white;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .modal-content.compact {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-messages {
        height: 150px;
    }
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 1001;
}

.user-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.user-dropdown hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.user-dropdown i {
    width: 18px;
    text-align: center;
}

/* Mobile User Info */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-hover);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.mobile-user-info i {
    font-size: 1.5rem;
    color: var(--primary);
}

.mobile-user-info span {
    font-weight: 500;
}

.btn-logout {
    background: transparent;
    color: #f44336;
    border: 2px solid #f44336;
    width: 100%;
}

.btn-logout:hover {
    background: rgba(244, 67, 54, 0.1);
}