:root {
    --primary: #0d6efd;
    --primary-dark: #0a3d62;
    --background: #0b132b;
    --secondary: #1c2541;
    --accent: #3a506b;
    --text-light: #f1f6f9;
}

body {
    background: linear-gradient(160deg, var(--background), #050814 80%);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--text-light);
}

.navbar-brand,
.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: #8ab8ff !important;
}

.navbar, .sidebar {
    background-color: rgba(12, 19, 43, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(13, 110, 253, 0.18);
}

.card {
    background: rgba(29, 38, 64, 0.85);
    border: 1px solid rgba(13, 110, 253, 0.25);
    border-radius: 1.25rem;
    box-shadow: 0 10px 28px rgba(5, 8, 20, 0.55);
}

.border {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
    color: var(--text-light);
}

.card p,
.card li,
.card span {
    color: rgba(241, 246, 249, 0.85);
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.summary-list li {
    background: rgba(64, 152, 255, 0.08);
    border: 1px dashed rgba(64, 152, 255, 0.45);
    border-radius: 0.95rem;
    padding: 0.85rem 1rem;
    position: relative;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.summary-list li:nth-child(3n + 1) {
    background: rgba(64, 152, 255, 0.12);
    border-color: rgba(64, 152, 255, 0.6);
}

.summary-list li:nth-child(3n + 2) {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.55);
}

.summary-list li:nth-child(3n + 3) {
    background: rgba(108, 92, 231, 0.12);
    border-color: rgba(108, 92, 231, 0.55);
}

.summary-list li:last-child {
    margin-bottom: 0;
}

.summary-list li strong {
    color: var(--text-light);
    font-weight: 600;
}

.summary-list li:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.65);
}

.admin-shell {
    min-height: 100vh;
}

.admin-shell .sidebar {
    flex: 0 0 260px;
    width: 260px;
    min-height: 100vh;
}

.admin-shell .admin-main {
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar {
    min-width: 260px;
    min-height: 100vh;
}

.sidebar .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.sidebar .nav-link {
    border-radius: 0.75rem;
    padding: 0.65rem 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus,
.sidebar .nav-link.active {
    background: rgba(13, 110, 253, 0.18);
    color: #cbd5ff !important;
}

.bank-info {
    background: rgba(13, 110, 253, 0.12);
    border: 1px dashed rgba(13, 110, 253, 0.45);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    color: var(--text-light);
}

.bank-info .bank-account {
    white-space: pre-wrap;
    margin: 0;
    color: rgba(241, 246, 249, 0.9);
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--text-light);
}

.btn-primary,
.btn-outline-primary:hover {
    background: linear-gradient(120deg, var(--primary), #4098ff);
    border: none;
    box-shadow: 0 8px 24px rgba(64, 152, 255, 0.35);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--text-light);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--text-light);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: #d5e6ff;
    background-color: rgba(154, 192, 255, 0.12);
    border-color: rgba(154, 192, 255, 0.45);
    box-shadow: 0 0.25rem 1rem rgba(64, 152, 255, 0.2);
}

.btn-outline-warning {
    border-color: rgba(255, 193, 7, 0.6);
    color: #ffda6a;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus {
    background: rgba(255, 193, 7, 0.15);
    color: #ffe082;
}

.table {
    color: var(--text-light);
}

.table thead th {
    background-color: rgba(13, 110, 253, 0.15);
    border-bottom: 1px solid rgba(13, 110, 253, 0.25);
}

.table tbody tr {
    background-color: rgba(17, 24, 43, 0.55);
}

.table tbody td,
.table thead th {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(29, 38, 64, 0.6);
}

.table.table-dark {
    background: transparent;
}

.bootstrap-table .table > :not(caption) > * > * {
    background-color: rgba(13, 19, 43, 0.88);
    color: rgba(226, 232, 240, 0.95);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.bootstrap-table .table thead th {
    background: linear-gradient(120deg, rgba(13, 110, 253, 0.22), rgba(64, 152, 255, 0.18)) !important;
    border-bottom: 1px solid rgba(13, 110, 253, 0.4) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bootstrap-table .table-hover > tbody > tr:hover > * {
    background-color: rgba(56, 189, 248, 0.16) !important;
    color: #f8fafc !important;
}

.bootstrap-table .fixed-table-toolbar .search input,
.bootstrap-table .fixed-table-toolbar .form-control {
    background: rgba(17, 24, 43, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: rgba(241, 246, 249, 0.92);
    border-radius: 0.85rem;
}

.bootstrap-table .fixed-table-toolbar button[name="refresh"] {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-inline: 0.9rem;
}

.bootstrap-table .fixed-table-toolbar button[name="refresh"] .refresh-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.bootstrap-table .fixed-table-container {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(13, 110, 253, 0.25);
}

.bootstrap-table .fixed-table-pagination .pagination li > a,
.bootstrap-table .fixed-table-pagination .pagination li > span {
    background: rgba(17, 24, 43, 0.8);
    border-color: rgba(148, 163, 184, 0.25);
    color: rgba(241, 246, 249, 0.85);
}

.bootstrap-table .fixed-table-pagination .pagination li.active > a,
.bootstrap-table .fixed-table-pagination .pagination li.active > span {
    background: linear-gradient(120deg, var(--primary), #4098ff);
    border-color: rgba(13, 110, 253, 0.5);
}

.form-control,
.form-select {
    background: rgba(12, 19, 35, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #d9ecff;
    font-weight: 500;
    caret-color: #38bdf8;
}

.form-label {
    color: rgba(241, 246, 249, 0.9);
    font-weight: 500;
}

.form-text,
.text-white-50 {
    color: rgba(241, 246, 249, 0.65) !important;
}

.form-control::placeholder,
.form-select::placeholder {
    color: rgba(186, 217, 255, 0.75);
}

.form-control:disabled,
.form-select:disabled {
    background: rgba(12, 19, 35, 0.6);
    color: rgba(148, 163, 184, 0.85);
}

.form-control-color {
    background: rgba(17, 24, 43, 0.95);
    border: 1px solid rgba(13, 110, 253, 0.4);
    width: 100%;
    padding: 0.45rem;
    border-radius: 0.75rem;
}

.form-check-label {
    color: rgba(241, 246, 249, 0.8);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(59, 130, 246, 0.85);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
    background: rgba(17, 24, 43, 1);
    color: #e3f2ff;
}

.bootstrap-table .fixed-table-body {
    overflow-x: auto;
}

.bootstrap-table .fixed-table-body .table tbody td {
    white-space: normal;
    vertical-align: middle;
}

.bootstrap-table .fixed-table-body .card-view {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, rgba(24, 33, 58, 0.95), rgba(12, 19, 35, 0.95));
    border-radius: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 12px 28px rgba(8, 12, 24, 0.45);
}

.bootstrap-table .card-view .title {
    font-weight: 600;
    color: rgba(248, 250, 252, 0.95);
}

.bootstrap-table .card-view .card-view-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.bootstrap-table .card-view .card-view-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bootstrap-table .card-view .card-view-title {
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.85rem;
}

.bootstrap-table .card-view .card-view-value {
    color: rgba(248, 250, 252, 0.95);
    font-weight: 500;
    text-align: right;
}

.ratio-locked {
    background: rgba(17, 24, 43, 0.65) !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
    color: rgba(241, 246, 249, 0.75) !important;
    cursor: not-allowed;
}

.navbar-logo {
    max-height: 48px;
    width: auto;
}

.iyzico-frame {
    background: #fff;
    border-radius: 1rem;
    min-height: 420px;
}

.iyzico-frame iframe {
    border-radius: 1rem;
}

.dropzone {
    border: 2px dashed rgba(13, 110, 253, 0.6);
    background: rgba(12, 19, 43, 0.75);
    color: var(--text-light);
    border-radius: 1rem;
}

.dropzone .dz-message {
    font-weight: 500;
    color: rgba(241, 246, 249, 0.8);
}

.brand-card {
    background: linear-gradient(145deg, rgba(5, 9, 20, 0.95), rgba(7, 14, 30, 0.95));
    border: 1px solid rgba(13, 110, 253, 0.18);
    box-shadow: 0 24px 48px rgba(6, 12, 24, 0.35);
}

.brand-upload {
    background: rgba(10, 16, 32, 0.9);
    border-radius: 1.5rem;
    border: 1px dashed rgba(13, 110, 253, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    min-height: 280px;
}

.brand-upload .brand-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.brand-upload .dropzone {
    min-height: 140px;
}

.brand-media {
    max-height: 140px;
    border-radius: 1rem;
    box-shadow: 0 16px 32px rgba(13, 110, 253, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.brand-media--small {
    max-height: 96px;
}

.table-disabled {
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.table-disabled .table-responsive {
    pointer-events: none;
}

.table-row-guest {
    opacity: 0.85;
}

.push-preview {
    min-height: 120px;
    border-radius: 1rem;
    border: 1px dashed rgba(56, 189, 248, 0.35);
    background: rgba(10, 16, 32, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.push-preview img {
    max-height: 160px;
    border-radius: 0.75rem;
    box-shadow: 0 16px 40px rgba(13, 110, 253, 0.25);
}

.qr-type-tabs {
    background: rgba(10, 16, 32, 0.75);
    border-radius: 1.5rem;
    border: 1px solid rgba(13, 110, 253, 0.18);
    padding: 0.5rem;
}

.qr-type-tabs .nav-link {
    color: rgba(233, 240, 255, 0.75);
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.qr-type-tabs .nav-link:hover {
    color: #f8f9ff;
    background: rgba(13, 110, 253, 0.12);
}

.qr-type-tabs .nav-link.active {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(42, 56, 140, 0.95));
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.35);
    color: #fff;
}

.qr-type-content {
    background: rgba(6, 12, 28, 0.9);
    border-radius: 1.5rem;
    border: 1px solid rgba(13, 110, 253, 0.18);
    padding: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.08);
}

.qr-type-content .form-label {
    font-weight: 600;
}

.qr-type-content small {
    font-size: 0.8rem;
}

@media (max-width: 576px) {
    .qr-type-content {
        padding: 1.25rem;
    }
}

.badge {
    background: rgba(13, 110, 253, 0.2);
    color: var(--text-light);
    border: 1px solid rgba(13, 110, 253, 0.45);
}

.package-card {
    border-radius: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(13, 110, 253, 0.25);
}

.package-card.border-primary {
    border-width: 2px !important;
    box-shadow: 0 18px 36px rgba(13, 110, 253, 0.35);
}

.price-badge {
    background: linear-gradient(120deg, rgba(13, 110, 253, 0.8), rgba(64, 152, 255, 0.9));
    border: none;
    font-size: 0.95rem;
    color: #fff;
}

.form-floating > label {
    color: #0b132b;
}

.form-floating .form-select {
    background-color: #fff;
    color: #0b132b;
}

.form-floating .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.35);
}

.form-floating.bg-white {
    padding: 0.5rem;
    border-radius: 1rem;
}

pre {
    background: rgba(29, 38, 64, 0.85);
    border-radius: 1rem;
    padding: 1.25rem;
    color: rgba(241, 246, 249, 0.85);
    border: 1px solid rgba(13, 110, 253, 0.25);
}

code {
    color: #8ab8ff;
    font-weight: 500;
}

.table td,
.table th {
    color: rgba(241, 246, 249, 0.85);
    border-color: rgba(255, 255, 255, 0.05);
}

.table-responsive {
    border-radius: 1rem;
    overflow-x: auto;
}

.table-responsive .table {
    margin-bottom: 0;
}

.table a {
    color: #9ac0ff;
}

.table a:hover {
    color: #d5e6ff;
}

.chart-container {
    position: relative;
    width: 100%;
    min-height: 260px;
    height: clamp(240px, 45vh, 420px);
}

.chart-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.chart-toolbar .form-select {
    min-width: 140px;
}

.chart-toolbar .btn {
    flex-shrink: 0;
}

.chart-container canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 240px;
    height: clamp(220px, 42vh, 400px);
}

.chart-wrapper canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 576px) {
    .chart-container {
        min-height: 220px;
        height: clamp(200px, 55vh, 340px);
    }
}

.inline-notification-host {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
    width: min(360px, calc(100% - 2rem));
    pointer-events: none;
    z-index: 1055;
}

.inline-notification {
    position: relative;
    width: 100%;
    background: rgba(12, 19, 36, 0.96);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    color: #f8fafc;
    padding: 1.25rem;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.inline-notification.visible {
    opacity: 1;
    transform: translateY(0);
}

.inline-notification.closing {
    opacity: 0;
    transform: translateY(10px);
}

.inline-notification-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.inline-notification-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.inline-notification-title {
    font-weight: 600;
    font-size: 1.05rem;
    flex: 1;
}

.inline-notification-image {
    margin: 0.5rem 0 1rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.15);
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 220px;
}

.inline-notification-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.inline-notification-image.portrait img {
    width: auto;
    height: 100%;
    max-height: 220px;
}

.inline-notification-image.landscape img {
    width: 100%;
    height: auto;
}

.inline-notification-image.square img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.inline-notification-body {
    font-size: 0.95rem;
    line-height: 1.45;
    color: #e2e8f0;
}

.inline-notification-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.inline-notification.hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.45);
}

.notification-dropzone {
    border: 2px dashed rgba(59, 130, 246, 0.4) !important;
    border-radius: 16px !important;
    background: rgba(15, 23, 42, 0.5) !important;
    color: #cbd5f5 !important;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.notification-dropzone .dz-message {
    font-weight: 500;
    font-size: 0.95rem;
    color: inherit;
}

.notification-dropzone.dz-started .dz-message {
    display: none;
}

.notification-dropzone .dz-preview {
    margin: 0;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.notification-dropzone .dz-preview .dz-image {
    width: 100% !important;
    height: auto !important;
    border-radius: 1rem;
    overflow: hidden;
    max-height: 260px;
}

.notification-dropzone .dz-preview .dz-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 260px;
}

.notification-dropzone .dz-preview .dz-details {
    display: none;
}

.notification-dropzone .dz-preview .dz-remove {
    color: #fca5a5;
    text-decoration: none;
    font-size: 0.85rem;
}

.notification-dropzone .dz-preview .dz-remove:hover {
    color: #f87171;
}

@media (max-width: 576px) {
    .inline-notification-host {
        right: 1rem;
        left: 1rem;
        width: auto;
        align-items: stretch;
    }

    .inline-notification {
        padding: 1rem;
    }

    .inline-notification-image,
    .inline-notification-image.portrait img {
        max-height: 180px;
    }
}

footer {
    background: rgba(12, 19, 43, 0.7);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

@media (max-width: 768px) {
    .card {
        border-radius: 1rem;
        padding: 1.5rem;
    }

    .navbar .navbar-brand {
        font-size: 1.1rem;
    }

    table.table {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.95rem;
    }
}

@media (max-width: 991.98px) {
    .sidebar.offcanvas {
        width: 280px;
    }

    .sidebar.offcanvas .offcanvas-body {
        display: flex;
        flex-direction: column;
        height: 100%;
        gap: 1.5rem;
    }
}

@media (min-width: 992px) {
    .sidebar.offcanvas {
        position: sticky;
        top: 0;
        transform: none !important;
        visibility: visible !important;
        height: 100vh;
        box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
    }

    .sidebar.offcanvas .offcanvas-body {
        padding-top: 3rem;
    }

    .sidebar.offcanvas::after {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        border-right: 1px solid rgba(148, 163, 184, 0.12);
    }
}