/* ========================================================================= */
/*  GLOBAL RESETS & TYPOGRAPHY                                              */
/* ========================================================================= */

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

html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    background-color: #f3f4f6;
    color: #111827;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
/* === GLOBAL FOOTER � SQL TABANLI � SON HAL ================== */

footer.site-footer {
    width: 100% !important;
    margin-top: 40px !important;
    background: #e5e7eb !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 18px 0 !important;

    display: block !important;
    clear: both !important;
}

footer.site-footer .site-footer__inner {
    max-width: 1100px !important;
    margin: 0 auto !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: center !important;
}

footer.site-footer .site-footer__text {
    font-size: 0.9rem !important;
    color: #374151 !important;
}

footer.site-footer .site-footer__meta a {
    color: #374151 !important;
    text-decoration: none !important;
    margin: 0 6px !important;
}

footer.site-footer .site-footer__meta a:hover {
    text-decoration: underline !important;
}
/* Lists */
ul {
    list-style: none;
    padding-left: 0;
}

/* Images */
img {
    max-width: 100%;
    display: block;
}

/* Inputs, buttons */
input,
select,
textarea,
button {
    font-family: inherit;
    font-size: 1rem;
}

/* ========================================================================= */
/*  GLOBAL LAYOUT WRAPPER                                                   */
/* ========================================================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Ana i�erik alanlar? */
.main-content {
    padding: 24px 0 40px;
}

/* ========================================================================= */
/*  BUTTONS (GENERIC)                                                       */
/* ========================================================================= */

.button-red,
.btn.btn-primary,
.btn.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 10px;
    border: 2px solid var(--theme-btn-primary-border, var(--theme-btn-primary));
    cursor: pointer;
    background-color: var(--theme-btn-primary);
    color: var(--theme-header-text, #ffffff);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button-red:hover,
.btn.btn-primary:hover,
.btn.btn-danger:hover {
    background-color: var(--theme-btn-primary-hover, var(--theme-primary-dark));
    border-color: var(--theme-btn-primary-hover, var(--theme-primary-dark));
    color: var(--theme-btn-primary-hover-text, var(--theme-header-text, #ffffff)) !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.button-red:active,
.btn.btn-primary:active,
.btn.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Secondary / outline button */
.button-grey,
.btn.btn-outline,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1.5px solid var(--theme-border-dark, #d1d5db);
    background-color: var(--theme-bg-primary, #ffffff);
    color: var(--theme-text-primary, #111827);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button-grey:hover,
.btn.btn-outline:hover,
.button-secondary:hover {
    background-color: var(--theme-bg-tertiary, #e5e7eb);
    border-color: var(--theme-border-dark, #9ca3af);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.button-grey:active,
.btn.btn-outline:active,
.button-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Success button */
.button-success,
.btn.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 10px;
    border: 2px solid #059669;
    cursor: pointer;
    background-color: #059669;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.button-success:hover,
.btn.btn-success:hover {
    background-color: #047857;
    border-color: #047857;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Small button variant */
.button-red.btn-sm,
.button-grey.btn-sm,
.button-success.btn-sm,
.btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
    border-radius: 8px;
}

/* Base .btn (used alone as neutral/cancel button) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1.5px solid var(--theme-border-dark, #d1d5db);
    background-color: var(--theme-bg-primary, #ffffff);
    color: var(--theme-text-primary, #111827);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: var(--theme-bg-tertiary, #e5e7eb);
    text-decoration: none;
}

/* Disabled state */
.button-red:disabled,
.button-grey:disabled,
.button-success:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

/* ========================================================================= */
/*  BADGES / LABELS                                                         */
/* ========================================================================= */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
}

.badge-success {
    background-color: #d1fae5;
    color: #047857;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #b91c1c;
}

.badge-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

/* ========================================================================= */
/*  FORMS (GENERIC)                                                         */
/* ========================================================================= */

form {
    margin: 0;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--theme-text-primary, #111827);
    letter-spacing: 0.01em;
}

/* Shared input styles */
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="search"],
.form-group input[type="date"],
.form-group select,
.form-group textarea,
input.form-control,
select.form-control,
textarea.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--theme-border, #d1d5db);
    border-radius: 10px;
    font-size: 0.9375rem;
    line-height: 1.5;
    background-color: var(--theme-bg-primary, #ffffff);
    color: var(--theme-text-primary, #111827);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Custom select arrow */
.form-group select,
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.22 4.22a.75.75 0 0 1 1.06 0L6 6.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L2.22 5.28a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 38px;
    cursor: pointer;
}

/* Focus state */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    outline: none;
    border-color: var(--theme-btn-primary, #b91c1c);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
    background-color: #ffffff;
}

/* Textarea */
.form-group textarea,
textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder,
input.form-control::placeholder,
textarea.form-control::placeholder {
    color: var(--theme-text-muted, #9ca3af);
    font-weight: 400;
}

/* Form note */
.form-group .note,
.note {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 5px;
}

/* Form actions (button group) */
.form-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Checkbox / radio row */
.form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #374151;
}

/* Checkbox styling */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--theme-btn-primary, #b91c1c);
    cursor: pointer;
    border-radius: 4px;
}

/* Global bare inputs (not inside .form-group) */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
select,
textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--theme-border, #d1d5db);
    border-radius: 10px;
    font-size: 0.9375rem;
    line-height: 1.5;
    background-color: var(--theme-bg-primary, #ffffff);
    color: var(--theme-text-primary, #111827);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.22 4.22a.75.75 0 0 1 1.06 0L6 6.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L2.22 5.28a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 38px;
    cursor: pointer;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--theme-btn-primary, #b91c1c);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

/* Two-column form grid */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

/* ========================================================================= */
/*  ALERTS                                                                  */
/* ========================================================================= */

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1.5px solid #fecaca;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1.5px solid #bbf7d0;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1.5px solid #fed7aa;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1.5px solid #bfdbfe;
}

/* ========================================================================= */
/*  ADMIN LAYOUT                                                            */
/* ========================================================================= */

.admin-main {
    padding: 80px 24px 40px;
    min-height: calc(100vh - 60px);
    overflow-x: hidden;
}

.admin-main--wide {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-main--narrow {
    max-width: 900px;
    margin: 0 auto;
}

/* Page header */
.page-header {
    margin-bottom: 18px;
}

.page-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Public page titles */
.home-page-header,
.page-header.home-page-header {
    margin-top: 20px;
    margin-bottom: 18px;
}

.home-page-title,
.page-header h1,
.home-page-header h1,
.page-header h2,
.home-page-header h2 {
    font-size: 1.5rem !important;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Sayfa içeriğindeki h1'leri de h2 gibi göster */
.page-content h1,
.home-page-content h1 {
    font-size: 1.5rem !important;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.4;
}

.page-header .note {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Cards */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    margin-bottom: 18px;
}

/* ========================================================================= */
/*  TABLES (GENERIC)                                                        */
/* ========================================================================= */

.table-container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow-x: auto;
}

.table-container--wide {
    margin-top: 16px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table thead tr {
    background-color: #f3f4f6;
}

.table thead th {
    text-align: left;
    padding: 8px 10px;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}

.table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.table tbody td {
    padding: 8px 10px;
    border-top: 1px solid #e5e7eb;
    vertical-align: middle;
}

/* Tablo i�i aksiyonlar */
.table .actions {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}

/* ========================================================================= */
/*  FILTER BARS (ADMIN LIST PAGES)                                          */
/* ========================================================================= */

.filters {
    background-color: var(--theme-card-bg, #ffffff);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--theme-border, #e5e7eb);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    margin-top: 8px;
    margin-bottom: 14px;
}

.filters .group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filters input[type="text"],
.filters select {
    min-width: 160px;
    height: 42px;
    font-size: 0.875rem;
}

/* ========================================================================= */
/*  USERS TABLE (ADMIN)                                                     */
/* ========================================================================= */

.users-table thead tr {
    background-color: #b91c1c;
    color: #ffffff;
}

.users-table thead th {
    border-bottom: 1px solid #7f1d1d;
}

.users-table tbody td {
    border-bottom: 1px solid #e5e7eb;
}

/* ========================================================================= */
/*  FILES PAGE (ADMIN)                                                      */
/* ========================================================================= */

.files-page .card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* files tables */
.files-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.files-table thead tr {
    background-color: #f3f4f6;
}

.files-table thead th {
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.files-table tbody td {
    padding: 8px 10px;
    border-top: 1px solid #e5e7eb;
    vertical-align: middle;
}

/* USE + DELETE buttons yan yana ve d�zg�n */
.files-table tbody td form {
    display: inline-block;
    margin-left: 6px;
}

/* ========================================================================= */
/*  PROFILE PAGE                                                            */
/* ========================================================================= */

.profile-header {
    margin-bottom: 20px;
}

.profile-header h2 {
    margin-bottom: 4px;
}

.profile-header .note {
    color: #6b7280;
    font-size: 0.9rem;
}

/* ========================================================================= */
/*  SUPPORT PAGE (USER)                                                     */
/* ========================================================================= */

.support-page .card + .card {
    margin-top: 16px;
}

/* ========================================================================= */
/*  FAQ PAGE (ADMIN)                                                        */
/* ========================================================================= */

/* FAQ & Files table header spacing + alignment are overridden here */
.admin-main .table.files-table thead tr th {
    background: var(--theme-header-bg, #e5e7eb) !important;
    color: var(--theme-header-text, #111827) !important;
    padding: 12px 14px !important;
    text-align: left !important;
    vertical-align: middle !important;
    border-bottom: 3px solid var(--theme-border-dark, #cbd5e1) !important;
}

.admin-main .table.files-table tbody td {
    padding: 12px 14px !important;
    border-top: 1px solid #e5e7eb !important;
    vertical-align: top !important;
}

/* Card ba?l?klar? ile alt?ndaki i�erik aras?na bo?luk */
.card > h3 {
    margin: 0 0 10px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
}

/* E?er �ok biti?ik geliyorsa tablo/form ile ekstra mesafe */
.card > h3 + table,
.card > h3 + form {
    margin-top: 8px;
}

/* FAQ sayfas? �zel */
.faq-page .card > h3 {
    display: block;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
}

.faq-page .table thead tr {
    background: var(--theme-header-bg, #e5e7eb);
}

.faq-page .table thead th {
    color: var(--theme-header-text, #111827);
    text-align: left;
    padding: 8px 10px;
    vertical-align: middle;
    font-weight: 600;
}

/* ========================================================================= */
/*  PAGES LIST (ADMIN)                                                      */
/* ========================================================================= */

.pages-list .table thead tr {
    background-color: #e5e7eb;
}

.pages-list .table thead th {
    text-align: left;
    padding: 8px 10px;
    font-weight: 600;
}

.pages-list .table tbody td {
    padding: 8px 10px;
    border-top: 1px solid #e5e7eb;
}

.pages-list .filter-bar {
    margin-top: 8px;
    margin-bottom: 10px;
}

/* ========================================================================= */
/*  MISC                                                                    */
/* ========================================================================= */

.text-muted {
    color: #6b7280;
}

.text-sm {
    font-size: 0.85rem;
}

.text-xs {
    font-size: 0.75rem;
}

/* =========================================================
   PUBLIC PAGES SAFE PADDING (Home, About, Terms, Privacy�)
   ========================================================= */
.public-page {
    padding-left: clamp(12px, 5vw, 100px) !important;
    padding-right: clamp(12px, 5vw, 100px) !important;
    box-sizing: border-box;
}
/* ===================================================== */
/* HOME PAGE � FAQ GRID (3 KUTU + BUTTON)               */
/* ===================================================== */

.home-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.home-faq-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
    min-height: 140px;
}

.home-faq-question {
    margin: 0 0 6px 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #111827;
}

.home-faq-answer {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* �View all FAQ� butonu sola hizal?, alt?nda hafif bo?luk */
.home-faq-more-left {
    margin-top: 14px;
}

/* Eski sevdi?in k?rm?z? butonla uyum i�in sadece display ayar? */
.home-faq-more-left .button-red,
.home-faq-more-left .faq-red-btn {
    display: inline-block;
}

/* === Mobil g�r�n�m (k���k ekranlar) ======================== */
@media (max-width: 640px) {
    footer.site-footer .site-footer__inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
}
/* === ADMIN DASHBOARD STAT CARDS BORDER FIX === */
.admin-stats-card,
.admin-stat-card,
.stats-card,
.stat-card,
.stat-box,
.dashboard-stat-box,
.dashboard-stat-card {
    border: 2px solid #d1d5db !important;
    border-radius: 10px !important;
    background: #ebf1ea;
    padding: 16px !important;
}

/* USERS & CUSTOMERS BLOGU KUTU G�R�N�M� */
.dashboard-actions {
    border: 1px solid #d1d5db !important; /* gri �er�eve */
    background: #f6f3f3;                  /* beyaz arka plan */
    padding: 16px 20px;                   /* i� bosluk */
    border-radius: 12px;                  /* yuvarlatilmis k�?e */
    margin-top: 20px !important;          /* �stten bosluk */
}

/* ?�teki ba?l???n bo?lu?u */
.dashboard-actions > h3 {
    margin-bottom: 12px !important;
}

/* ?�teki buton container */
.dashboard-actions .actions {
    margin-top: 6px;
}
.qty-btn {
    display: inline-block;
    padding: 4px 10px;
    background: #e5e7eb;
    color: #111827;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    margin: 0 2px;
}

.qty-btn:hover {
    background: #d1d5db;
}

.qty {
    display: inline-block;
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}
/* ============================================================
   ORDER SUCCESS PAGE � CLEAN & MODERN
   ============================================================ */

.order-success-page {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.order-success-page h1 {
  font-size: 1.4rem;
  color: #111827;
  margin-bottom: 8px;
}

.order-success-page .home-page-meta {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 20px;
}

/* ------------------------------
   ORDER SUMMARY CARD
   ------------------------------ */
.order-summary-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 18px 20px;
  border-radius: 10px;
  margin-bottom: 25px;
}

.order-summary-card p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: #374151;
}

.order-summary-card strong {
  color: #111827;
}

/* ------------------------------
   ORDER ITEMS TABLE
   ------------------------------ */
.order-items-block h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #111827;
}

.order-items-block .table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
}

.order-items-block .table th {
  text-align: left;
  padding: 10px;
  font-size: 0.9rem;
  color: #374151;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.order-items-block .table td {
  padding: 10px;
  font-size: 0.9rem;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
}

/* ------------------------------
   BOTTOM ACTION BUTTONS
   ------------------------------ */
.order-success-actions {
  margin-top: 25px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.order-success-actions a.button-grey,
.order-success-actions a.button-red {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
}

/* Daha profesyonel hover */
.order-success-actions a.button-grey:hover {
  background: #e5e7eb;
}

.order-success-actions a.button-red:hover {
  opacity: 0.9;
}

/* =========================================================
   ADMIN ORDER VIEW PAGE (order_view.php)
   ========================================================= */

.order-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

.order-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
    text-align: left;
}

.order-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 25px;
}

.order-box p {
    margin: 6px 0;
    font-size: 0.95rem;
    color: #374151;
}

.order-items h2 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #1f2937;
}

/* Table */
.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.order-table th {
    text-align: left;
    padding: 10px;
    font-size: 0.90rem;
    background: #f3f4f6;
    border-bottom: 1px solid #d1d5db;
}

.order-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.90rem;
}

.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 14px;
    background: #4b5563;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: #374151;
}

.admin-page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 40px;
    position: relative;
}

/* === ADMIN ORDERS TABLE FIX === */
.admin-orders-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Tablo d�z hizalama */
.admin-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
}

/* Ba?l?k sat?r? */
.admin-orders-table thead th {
    text-align: left !important;
    padding: 10px;
    background: #f3f4f6;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Sat?rlar */
.admin-orders-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

/* Actions s�tunu ortalanm?? */
.admin-orders-table td.actions {
    text-align: center;
}

/* Sat?r hover efekti */
.admin-orders-table tbody tr:hover {
    background: #f9fafb;
}

/* Actions butonlar? */
.admin-order-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    background: #ef4444;
}

.admin-order-btn:hover {
    background: #dc2626;
}

/* === ADMIN ORDERS TABLE (orders.php) G�RSEL D�ZEN === */
.admin-page .admin-page-wrapper {
    /* ?stersen genel admin sayfalar?n? biraz i�eri alal?m */
    padding: 20px 40px;
}

/* Tablo genel g�r�n�m */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #ffffff;
}

/* Ba?l?k ve h�creler ortak stil */
.orders-table th,
.orders-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

/* Ba?l?k sat?r? */
.orders-table thead th {
    background: #f3f4f6;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
}

/* Metin kolonlar? solda kals?n */
.orders-table th:nth-child(1),
.orders-table th:nth-child(3),
.orders-table th:nth-child(4),
.orders-table th:nth-child(6),
.orders-table td:nth-child(1),
.orders-table td:nth-child(3),
.orders-table td:nth-child(4),
.orders-table td:nth-child(6) {
    text-align: left;
}

/* Say?sal kolonlar? sa?a hizalayal?m (Amount, Date) */
.orders-table th:nth-child(2),
.orders-table th:nth-child(5),
.orders-table td:nth-child(2),
.orders-table td:nth-child(5) {
    text-align: right;
}

/* Actions s�tunu ortal? */
.orders-table th:nth-child(6),
.orders-table td:nth-child(6) {
    text-align: center;
}

/* Sat?r hover efekti */
.orders-table tbody tr:hover {
    background: #f9fafb;
}

/* Actions i�indeki butonun biraz nefes almas? i�in */
.orders-table td a.button-grey.small {
    display: inline-block;
    margin: 0 2px;
}

/* Order detail sayfas? ba?l???n? k���lt */
.order-view .page-title {
  font-size: 1.3rem;   /* daha k���k ba?l?k */
  margin-bottom: 1rem;
}
/* Admin orders tablosu temel stil */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

/* Ba?l?k sat?r? belirgin olsun */
.orders-table thead th {
  background-color: #f1f5f9;
  font-weight: 600;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

/* G�vde h�creleri */
.orders-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

/* Sortable kolon linkleri */
.orders-table th.sortable a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #111827;
  text-decoration: none;
  font-size: 0.9rem;
}

.orders-table th.sortable a:hover {
  text-decoration: underline;
}

/* Ok sembol� */
.orders-table .sort-arrow {
  font-size: 0.7rem;
  opacity: 0.7;
}
/* ========================================================================= */
/*  AUTH LAYOUT (Login / Register)                                          */
/* ========================================================================= */

body.auth-page {
    background: var(--theme-bg-secondary, #f3f4f6);
}

.auth-wrapper {
    max-width: 480px;
    margin: 60px auto;
    padding: 0 20px;
}

.auth-container {
    margin: 0 auto;
    background: var(--theme-bg-primary, #ffffff);
    border-radius: 16px;
    padding: 36px 40px 40px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--theme-border, #e5e7eb);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.4rem !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--theme-text-primary, #111827);
}

.auth-header p {
    font-size: 0.9rem !important;
    color: var(--theme-text-secondary, #6b7280);
    line-height: 1.5;
}

.auth-form {
    width: 100%;
}

.auth-form .form-group {
    margin-bottom: 1.1rem;
}

.auth-form .form-group input {
    height: 48px;
}

.auth-form .button-red {
    width: 100%;
    margin-top: 0.75rem;
    height: 48px;
    font-size: 0.95rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--theme-text-secondary, #6b7280);
}

.auth-footer a {
    color: var(--theme-btn-primary, #b91c1c);
    font-weight: 600;
}

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

@media (max-width: 640px) {
    .auth-wrapper {
        margin: 30px auto;
    }
    .auth-container {
        padding: 28px 24px 32px;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}