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

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --text-color: #333;
    --border-radius: 12px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    /* Mobile Safe Area */
    --safe-area-top: max(0px, env(safe-area-inset-top));
    --safe-area-bottom: max(0px, env(safe-area-inset-bottom));
    --safe-area-left: max(0px, env(safe-area-inset-left));
    --safe-area-right: max(0px, env(safe-area-inset-right));
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #E6D5F5 0%, #F0E6FF 100%);
    color: var(--text-color);
    min-height: 100vh;
    padding: 10px;
    padding-top: var(--safe-area-top);
    padding-bottom: var(--safe-area-bottom);
    -webkit-font-smoothing: antialiased;
    -webkit-touch-callout: none;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* Force modals to appear on top */
.profile-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
}

/* Onboarding Sayfası */
.onboarding-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 500px;
    margin: 0 auto;
}

.onboarding-header {
    text-align: center;
    padding: 2px 0;
}

.benefits-section {
    background: transparent;
    padding: 0px 0px;
    border-radius: var(--border-radius);
}

.benefits-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 8px;
    font-size: 1em;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.benefit-card {
    background: transparent;
    padding: 4px 4px;
    border-radius: 8px;
    text-align: center;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 1.5em;
    margin-bottom: 4px;
}

.benefit-card p {
    font-size: 0.65em;
    color: #333;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signup-section {
    background: transparent;
    padding: 2px 0px;
    border-radius: var(--border-radius);
    box-shadow: none;
    margin-top: 2px;
}

.signup-section h3 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 1em;
    display: none;
}

.social-signin {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.social-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
}

.google-btn {
    background: linear-gradient(135deg, #4285F4 0%, #357AE8 100%);
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.facebook-btn {
    background: linear-gradient(135deg, #1877F2 0%, #0A66C2 100%);
}

.facebook-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.apple-btn {
    background: linear-gradient(135deg, #000 0%, #333 100%);
}

.apple-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.divider {
    text-align: center;
    margin: 8px 0;
    position: relative;
    color: #999;
    font-size: 0.8em;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    position: relative;
    background: white;
    padding: 0 8px;
}

/* Standart Header - Tüm Sayfalar İçin */
.standard-header {
    background: linear-gradient(135deg, #e8f0ff 0%, #f5e8ff 100%);
    padding: 12px 15px;
    border-radius: 0;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.standard-header h1 {
    font-size: 1.5em;
    margin: 0 0 -10px 0;
    letter-spacing: 0.5px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-wrap: nowrap;
    width: 100%;
}

.standard-header h1 .hesap-word {
    color: #4A90E2;
    font-weight: 900;
    white-space: nowrap;
}

.standard-header h1 .percent-sign {
    color: #27ae60;
    font-weight: 400;
    font-size: 1.3em;
    line-height: 1;
    flex-shrink: 0;
    margin: 0;
}

.standard-header h1 .paylas-word {
    color: #9B59B6;
    font-weight: 900;
    white-space: nowrap;
}

.standard-header p {
    font-size: 1.1em;
    color: #666;
    font-style: italic;
    margin: 8px 0 0 0;
    font-family: 'Pacifico', 'Brush Script MT', 'Great Vibes', cursive;
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Auth Tabs */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 4px;
    border-bottom: none;
}

.tab-btn {
    padding: 0px 4px;
    margin: 0;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    border: none;
    font-size: 0.75em;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    white-space: nowrap;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.tab-btn.active {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    color: white;
}

.tab-btn:not(.active) {
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
    color: white;
}

.auth-form h3 {
    text-align: center;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95em;
}

/* Signup Form - Yeni Tasarım */
.signup-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.form-input {
    width: 100%;
    padding: 0px 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.75em;
    line-height: 1;
    height: 28px;
    box-sizing: border-box;
    font-family: inherit;
    display: flex;
    align-items: center;
}

.form-input:focus {
    outline: none;
    border-color: #FF6B6B;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.form-submit-btn {
    width: 100%;
    padding: 0px 4px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    font-size: 0.75em;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 0px;
    box-sizing: border-box;
}

/* Login Card Style */
.login-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    padding: 0 !important;
}

.login-header {
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
    color: white;
    padding: 16px;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.login-input {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    background: #f0f0f0;
    font-size: 0.95em;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-input:focus {
    outline: none;
    background: #e8e8e8;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.forgot-link {
    text-align: right;
    margin: 0;
    padding: 0;
    font-size: 0.85em;
}

.forgot-link a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link a:hover {
    color: #229954;
}

.login-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
    color: white;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #8E44AD 0%, #7D3C98 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.signup-text {
    text-align: center;
    padding: 0 20px 20px 20px;
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.signup-text a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-text a:hover {
    color: #229954;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    color: white;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 26px;
    height: 26px;
    line-height: 1.2;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.terms-text {
    text-align: center;
    font-size: 0.75em;
    color: #999;
    margin-top: 8px;
}

/* Status Message Styling */
.status-message {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 5px;
    display: none;
    animation: slideDown 0.3s ease-out;
    line-height: 1.3;
    word-wrap: break-word;
    white-space: normal;
    min-height: 0;
}

.status-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: block;
    border-left: 4px solid #2e7d32;
}

.status-message.error {
    background: #ffebee;
    color: #c62828;
    display: block;
    border-left: 4px solid #c62828;
}

.status-message.info {
    background: #fff3e0;
    color: #e65100;
    display: block;
    border-left: 4px solid #e65100;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
}

.terms-text a {
    color: #FF6B6B;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Profil Butonu */
.profile-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    z-index: 10;
}

.profile-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Profil Sayfası */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
}

.profile-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    color: white;
    padding: 40px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.profile-avatar {
    font-size: 4em;
    margin-bottom: 15px;
}

.profile-header h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
}

.profile-header p {
    font-size: 0.95em;
    opacity: 0.9;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-section {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-section h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #333;
}

.info-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #FF6B6B;
}

.info-box p {
    margin: 8px 0;
    color: #333;
}

.amount {
    color: #FF6B6B;
    font-weight: 600;
}

/* Kupon Stilleri */
.bonus-section {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE8CC 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #FFD700;
}

.bonus-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.bonus-header h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 0.95em;
}

.bonus-amount {
    font-size: 2em;
    font-weight: 900;
    color: #FFD700;
    margin: 0;
}

.status-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.progress-container {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85em;
    color: #666;
    margin: 0;
}

.status-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

.level {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.level.active {
    opacity: 1;
    background: white;
    border: 2px solid #FFD700;
}

.level-icon {
    font-size: 1.8em;
    margin-bottom: 5px;
}

.level {
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
}

.level-range {
    font-size: 0.75em;
    color: #999;
    margin-top: 3px;
}

.level-benefits {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
}

.level-benefits h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 0.95em;
}

.level-benefits ul {
    margin: 0;
    padding-left: 20px;
}

.level-benefits li {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

.coupon-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: 15px;
}

.tab-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active {
    background: #FF6B6B;
    color: white;
    border-color: #FF6B6B;
}

.tab-btn:hover {
    border-color: #FF6B6B;
}

.coupon-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.coupon-card {
    border: 2px dashed #2ECC71;
    padding: 15px;
    border-radius: 8px;
    background: #f0fdf4;
}

.coupon-card.used {
    border-color: #ddd;
    background: #f5f5f5;
    opacity: 0.7;
}

.coupon-header {
    font-size: 1.1em;
    font-weight: bold;
    color: #2ECC71;
    margin-bottom: 8px;
}

.coupon-card.used .coupon-header {
    color: #999;
}

.coupon-card p {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

.coupon-code {
    font-family: monospace;
    background: white;
    padding: 5px;
    border-radius: 4px;
    color: #333;
}

/* Kart Stilleri */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.order-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #FF6B6B;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.order-header h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 0.95em;
}

.order-date {
    margin: 0;
    font-size: 0.85em;
    color: #999;
}

.order-amount {
    font-size: 1.1em;
    font-weight: 600;
    color: #FF6B6B;
    text-align: right;
}

.order-details {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid #4ECDC4;
}

.order-details p {
    margin: 3px 0;
    font-size: 0.9em;
    color: #666;
}

.order-section {
    margin: 12px 0;
}

.order-section h5 {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #333;
    font-weight: 600;
}

.subtotal {
    font-weight: 600;
    color: #FF6B6B;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

.member-bill {
    background: #f0f8ff;
    border-radius: 6px;
    overflow: hidden;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e0f0ff;
}

.member-item:last-child {
    border-bottom: none;
}

.member-name {
    margin: 0;
    font-size: 0.9em;
    color: #333;
    font-weight: 500;
}

.member-amount {
    margin: 0;
    font-size: 0.95em;
    font-weight: 600;
    color: #FF6B6B;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.card-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.card-item div {
    flex: 1;
}

.card-item p {
    margin: 3px 0;
}

.card-number {
    font-size: 0.85em;
    color: #999;
}

.btn-small {
    padding: 6px 12px;
    background: #e0e0e0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: #d0d0d0;
}

/* Butonlar */
.btn-secondary {
    background: linear-gradient(135deg, #4ECDC4 0%, #3BA39C 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Sayfalar */
.page {
    display: none !important;
    padding: 30px;
    animation: slideIn 0.3s ease-in-out;
}

.page.active {
    display: block !important;
}

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

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    position: relative;
}

.header h1 {
    font-size: 1.4em;
    margin: 3px 0 2px 0;
    letter-spacing: 0.5px;
}

.hesap {
    color: #4A90E2;
    font-weight: 900;
}

.percent-sign {
    color: #27ae60;
    font-weight: 400;
    font-size: 1.2em;
    line-height: 1;
    flex-shrink: 0;
    margin: 0;
}

.slash {
    color: #999;
    font-weight: 400;
    font-size: 1.2em;
    margin: 0 4px;
}

.paylas {
    color: #9B59B6;
    font-weight: 900;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.app-logo {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    animation: logoFloat 3s ease-in-out infinite;
}

.header p {
    font-size: 1.1em;
    color: #333;
    margin-top: 10px;
}

.tagline {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8em;
    color: #333;
    margin-top: 2px !important;
    margin-bottom: 2px;
    font-weight: 400;
    font-style: normal;
}

/* Geri Butonu */
.back-button {
    display: none !important;
    padding: 8px 16px;
    background: var(--light-color);
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(-5px);
}

/* Seçenekler Grid */
.logo-card {
    background: linear-gradient(135deg, #e8f0ff 0%, #f5e8ff 100%);
    padding: 12px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: fit-content;
}

.logo-card h1 {
    margin-bottom: 2px;
}

.logo-card p {
    margin-top: 2px;
    margin-bottom: 0;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.option-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
}

.option-card:nth-child(1) {
    background: linear-gradient(135deg, #11a853 0%, #0d7e3a 100%);
}

.option-card:nth-child(2) {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.option-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.option-card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.option-card p {
    font-size: 0.95em;
    opacity: 0.9;
}

/* Form */
.form-container {
    max-width: 400px;
    margin: 30px auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-color);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

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

/* Butonlar */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}


.btn-primary {
    background: linear-gradient(135deg, #6EC6FF 0%, #2196F3 100%);
    color: white;
}


.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
    filter: brightness(1.15);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    width: auto;
    display: block;
    margin: 20px auto 0;
}

.btn-secondary:hover {
    background: #3db8af;
}

/* Restaurant Grid */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.restaurant-card {
    background: white;
    border: 2px solid var(--light-color);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.restaurant-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.restaurant-card p {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

/* Menü */
.menu-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-color);
}

.menu-header h2 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 20px;
    border: 2px solid var(--light-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-tab:hover {
    border-color: var(--primary-color);
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Menü Ürünleri */
.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.menu-item {
    background: white;
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.menu-item-emoji {
    font-size: 2em;
}

.menu-item-name {
    font-weight: 600;
    color: var(--dark-color);
    flex: 1;
}

.menu-item-price {
    font-size: 1.3em;
    color: var(--primary-color);
    font-weight: 700;
}

.quantity-input {
    width: 80px;
    padding: 8px;
    border: 2px solid var(--light-color);
    border-radius: 6px;
    font-size: 0.9em;
    margin-top: 10px;
    text-align: center;
}

.add-button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-button:hover {
    background: #3db8af;
}

/* Sipariş Listesi */
.orders-section {
    margin-bottom: 30px;
}

.person-orders {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.person-name {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.person-total {
    background: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    margin-bottom: 8px;
    border-radius: 6px;
    padding: 10px;
}

.item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-info strong {
    min-width: 150px;
}

.item-info span {
    color: #666;
    font-size: 0.9em;
}

.item-price {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 80px;
    text-align: right;
}

.remove-btn {
    background: #FF6B6B;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    margin-left: 10px;
}

.remove-btn:hover {
    background: #ee5a52;
}

/* Summary */
.summary-section {
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: var(--border-radius);
}

.summary-card h3 {
    margin-bottom: 20px;
    font-size: 1.3em;
}

.summary-card hr {
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 15px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2em;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95em;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons .btn {
    flex: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Modal animasyon */
#groupDetailsModal {
    animation: fadeIn 0.3s ease-in-out !important;
}

#groupDetailsModal.modal-open {
    display: flex !important;
    animation: fadeIn 0.3s ease-in-out;
}

#groupDetailsModal.modal-close {
    animation: fadeOut 0.3s ease-in-out;
}

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

/* Slide up animation for expenditure modal */
@keyframes slideUpModal {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2em;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .menu-items {
        grid-template-columns: 1fr;
    }

    .category-tabs {
        overflow-x: auto;
    }

    .restaurant-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    /* Touch target minimum 44x44px */
    button, .btn, .btn-primary, .btn-secondary {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
        text-align: center;
        justify-content: center;
        align-items: center;
        display: flex;
    }
    
    input, textarea, select {
        min-height: 44px;
        padding: 12px;
        font-size: 16px;
    }
    
    .header {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .tagline {
        font-size: 10em;
    }
    
    .page {
        padding: 15px;
    }
    
    .option-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .option-card {
        padding: 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-container {
        padding: 15px;
    }
    
    .profile-header {
        padding: 20px 0;
    }
    
    .section {
        padding: 15px 0;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .modal-overlay {
        padding: 0;
    }
    
    .modal-content {
        width: 100%;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
    }
}

/* Small phones */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        border-radius: 8px;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .tagline {
        font-size: 8em;
    }
    
    .page {
        padding: 12px;
    }
    
    .form-container {
        padding: 15px;
    }
    
    button, .btn {
        padding: 11px 14px;
        font-size: 15px;
    }
}

/* Landscape mode */
@media (max-height: 500px) {
    .header {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .tagline {
        font-size: 5em;
    }
    
    .page {
        padding: 10px;
    }
}

/* Boş durumlar */
.empty-message {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-message p {
    font-size: 1.1em;
}
