/* Ultra Aggressive Reset */
html {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    font-size: 100% !important;
    vertical-align: baseline !important;
    background: transparent !important;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    position: relative;
    top: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    line-height: 1.6 !important;
    color: #333 !important;
    background-color: #f8f9fa !important;
    font-size: 16px !important;
}

/* Additional reset for specific elements that might cause spacing */
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: inherit;
    vertical-align: baseline;
}

/* Container padding'i düzenle */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - En üstte yapışık */

/* Header - En üstte yapışık */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 0 !important;
    position: fixed;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0 4rem 0;
    text-align: center;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    margin-top: 0 !important;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
    margin-top: 2rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-purple:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: #667eea;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 1rem 0; /* 3rem'den 1rem'e düşürüldü - yukarıya çekti */
}

.package-card {
    text-align: center;
    position: relative;
}

.package-card .card-body {
    padding: 1rem 1.5rem 1rem 1.5rem; /* top right bottom left - içeriği yukarıya çek */
}

.package-price {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.package-credits {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.package-credits-info {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.package-cost-per-video {
    font-size: 1rem;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.package-duration {
    font-size: 1rem;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.package-description {
    color: #888;
    margin-bottom: 1.5rem;
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    min-height: calc(100vh - 200px);
}

.sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    height: fit-content;
}

/* ChatGPT Style User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.user-profile:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.user-profile-arrow {
    margin-left: auto;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.user-profile:hover .user-profile-arrow {
    transform: translateY(1px);
}

.user-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a202c;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 14px;
    color: #718096;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-balance {
    font-size: 14px;
    color: #059669;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4a5568;
}

.info-item svg {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    flex-shrink: 0;
}

.info-item.credit {
    color: #059669;
    font-weight: 600;
}

.info-item.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.info-item.clickable:hover {
    background-color: #f1f5f9;
    color: #1e40af;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.popup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    min-width: 400px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.popup-content {
    padding: 1.5rem;
}

.popup-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.popup-field label {
    font-weight: 600;
    font-size: 14px;
    color: #4b5563;
}

.popup-field .popup-value {
    font-size: 14px;
    color: #1f2937;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.popup-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Equal width buttons in popup */
.popup-actions .btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 12px 8px;
    font-size: 0.9rem;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When there's only one button, center it */
.popup-actions:has(button:only-child) {
    justify-content: center;
}

.popup-actions:has(button:only-child) .btn {
    flex: none;
    min-width: 120px;
}

/* Royal Blue button style */
.btn-royal-blue {
    background: linear-gradient(135deg, #4169e1, #1e3a8a) !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.3);
    height: 44px;
}

.btn-royal-blue:hover {
    background: linear-gradient(135deg, #1e3a8a, #4169e1) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4);
    color: white !important;
}

/* Responsive popup actions */
@media (max-width: 768px) {
    .popup-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .popup-actions .btn {
        flex: none;
        width: 100%;
    }
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.sidebar-menu li::marker {
    display: none;
}

.sidebar-menu li::before {
    display: none;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.sidebar-menu a svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: #f8f9fa;
    color: #495057;
    border-left: 3px solid #4169e1;
}

.sidebar-generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 1rem 1.25rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    margin-top: 1rem !important;
    transition: all 0.3s ease !important;
}

.sidebar-generate-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    color: white !important;
}

.sidebar-generate-btn.active {
    background: linear-gradient(135deg, #4169e1 0%, #667eea 100%) !important;
    border-left: 3px solid #fff !important;
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.4) !important;
}

.sidebar-generate-btn.active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    color: white !important;
}

.sidebar-generate-btn svg {
    width: 22px !important;
    height: 22px !important;
}

.main-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px px rgba(0,0,0,0);
    padding: 1rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Video Generation */
.video-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.video-form form {
    display: flex;
    flex-direction: column;
}

.video-form .btn-purple {
    margin-top: 2rem;
}

.generation-type-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Video Gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.video-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-preview {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.video-info {
    padding: 1rem;
}

.video-prompt {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.video-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending {
    background-color: #ffc107;
    color: #333;
}

.status-in-progress {
    background-color: #17a2b8;
    color: white;
}

.status-completed {
    background-color: #28a745;
    color: white;
}

.status-failed {
    background-color: #dc3545;
    color: white;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem; /* 1rem'den 0.5rem'e düşürüldü */
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* PayTR Integration Styles */
.buy-package-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.buy-package-container .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    margin: 0;
}

.buy-package-container .card-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.package-card.selected {
    border: 2px solid #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.package-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.package-card.selected:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.package-combobox {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.package-combobox:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.buy-button-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: stretch;
    flex-wrap: wrap;
}

.full-width-button {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
}

.button-text {
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.button-price {
    font-weight: bold;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: absolute;
    right: 15px;
}

.btn.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    min-height: 56px;
}

.btn.btn-success:hover:not(:disabled):not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn.btn-success:disabled,
.btn.btn-success.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #6c757d;
    box-shadow: none;
}

.btn.btn-success:disabled .button-price,
.btn.btn-success.disabled .button-price {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #9d4edd;  /* Purple border for empty fields */
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Field is filled - grey border */
.form-input:valid:not(:placeholder-shown) {
    border-color: #6c757d;  /* Grey when filled */
}

/* Field validation states */
.form-input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #9d4edd;  /* Purple when empty */
}

/* When form is submitted and has errors */
.form-submitted .form-input:invalid {
    border-color: #dc3545 !important;  /* Red when empty after submit */
}

.form-submitted .form-input:valid {
    border-color: #6c757d !important;  /* Grey when filled after submit */
}

/* Textarea specific */
textarea.form-input:valid:not(:placeholder-shown) {
    border-color: #6c757d;
}

/* Select dropdown styling */
.package-combobox {
    border: 2px solid #9d4edd !important;  /* Purple when no selection */
}

.package-combobox:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* When package is selected */
.package-combobox:valid {
    border-color: #6c757d !important;  /* Grey when package selected */
}

/* Form submitted states for select */
.form-submitted .package-combobox:invalid {
    border-color: #dc3545 !important;  /* Red when no selection after submit */
}

.text-muted {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Payment success/error messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive design for payment form */
@media (max-width: 768px) {
    .buy-package-container .card-body > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .buy-button-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .btn.btn-success {
        width: 100%;
    }
    
    .full-width-button {
        width: 100% !important;
    }
    
    .button-price {
        font-size: 1rem;
        padding: 3px 10px;
    }
}

/* PayTR Form Padding */
#paytr-form {
    padding: 2rem; /* PayTR formuna padding ver */
    background-color: #f8f9fa; /* Açık gri arka plan */
    border-radius: 8px; /* Yuvarlatılmış köşeler */
    margin-top: 1rem; /* Üst margin */
}

/* Google Login Styles */
.login-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e9ecef;
}

.login-divider span {
    background-color: white;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 0 1rem;
    position: relative;
}

.btn-google {
    width: 100%;
    background-color: #fff;
    border: 2px solid #e9ecef;
    color: #5f6368;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-google:active {
    background-color: #f1f3f4;
    transform: translateY(1px);
}

/* Auth Pages (Login/Register) - Minimal Design */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" fill-opacity="0.03"/><circle cx="75" cy="25" r="1" fill="%23ffffff" fill-opacity="0.03"/><circle cx="25" cy="75" r="1" fill="%23ffffff" fill-opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23ffffff" fill-opacity="0.03"/><circle cx="50" cy="50" r="1.5" fill="%23ffffff" fill-opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    opacity: 0.5;
}

.auth-container {
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-logo .logo-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 2rem 0;
    color: #333;
}

.auth-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.auth-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.auth-btn-google {
    color: #374151;
    border-color: #d1d5db;
}

.auth-btn-primary {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
    margin-top: 1rem;
}

.auth-btn-primary:hover {
    background: #6d28d9;
    border-color: #6d28d9;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.auth-form {
    margin-top: 1.5rem;
}

.auth-form-group {
    margin-bottom: 1rem;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.auth-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.auth-link {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Mobile responsive for auth pages */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }
    
    .auth-logo {
        margin-bottom: 2rem;
    }
}

/* Customer Testimonials Responsive Styles */
@media (max-width: 1200px) {
    /* Testimonials grid for tablet */
    .testimonials-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        max-width: 800px !important;
    }
}

@media (max-width: 768px) {
    /* Testimonials for mobile */
    .testimonials-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    .testimonials-container > div {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Testimonial section header responsive */
    .testimonials-header h2 {
        font-size: 2rem !important;
    }
    
    .testimonials-header p {
        font-size: 1rem !important;
        padding: 0 1rem !important;
    }
    
    .testimonials-header {
        margin-bottom: 2rem !important;
    }
}

/* Footer Responsive Styles */
@media (max-width: 1200px) {
    /* Footer grid for tablet */
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
    
    .footer-grid > div:first-child {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 768px) {
    /* Footer for mobile */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    
    .footer-bottom > div:last-child {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .footer-company-info h3 {
        font-size: 1.5rem !important;
    }
    
    .footer-company-info p {
        font-size: 0.9rem !important;
    }
    
    .footer-contact {
        padding: 1rem !important;
    }
    
    .footer-badges {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* Demo Videos Responsive */
@media (max-width: 768px) {
    .demo-videos-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1001;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 60px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.mobile-nav-text {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: block !important;
    }
    
    /* Add bottom padding to body to account for mobile nav */
    body {
        padding-bottom: 70px !important;
    }
    
    /* Hide desktop navigation links on mobile */
    .nav-links {
        display: none !important;
    }
}
