/* *****************************************************

    ** Hosteya Premium Blue Theme **
    ** Ana Renk: #007bff **

    Tüm renk ve tasarım tokenları burada tanımlanır.
    custom.css en son yüklenir ve tüm stilleri override eder.

***************************************************** */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --white: #fff;

    /* ============================
       Mavi Renk Paleti (#007bff)
       ============================ */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #007bff;
    --primary-700: #0069d9;
    --primary-800: #0056b3;
    --primary-900: #003d82;
    --primary-950: #002a5c;

    /* Neutral shades (metin ve arka plan için) */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --neutral-950: #020617;

    /* Primary colors - Mavi */
    --primary: #007bff;
    --primary-lifted: #0069d9;
    --primary-accented: #0056b3;

    /* Secondary colors */
    --secondary: #64748b;
    --secondary-lifted: #475569;
    --secondary-accented: #334155;

    /* Success colors */
    --success: #10b981;
    --success-lifted: #059669;
    --success-accented: #047857;

    /* Info colors */
    --info: #007bff;
    --info-lifted: #0069d9;
    --info-accented: #0056b3;

    /* Notice colors */
    --notice: #8b5cf6;
    --notice-lifted: #7c3aed;
    --notice-accented: #6d28d9;

    /* Warning colors */
    --warning: #f59e0b;
    --warning-lifted: #d97706;
    --warning-accented: #b45309;

    /* Error colors */
    --error: #ef4444;
    --error-lifted: #dc2626;
    --error-accented: #b91c1c;

    /* Grayscale → Koyu Mavi */
    --grayscale: #003d82;
    --grayscale-lifted: #0056b3;
    --grayscale-accented: #0069d9;

    /* Neutral colors */
    --neutral: #64748b;
    --neutral-lifted: #475569;
    --neutral-accented: #334155;

    /* Text colors */
    --text-inverted: var(--white);
    --text-muted: #94a3b8;
    --text-lifted: #64748b;
    --text-accented: #475569;
    --text: #0f172a;

    /* Border colors */
    --border-muted: #e2e8f0;
    --border: #cbd5e1;
    --border-lifted: #94a3b8;
    --border-accented: #475569;

    /* Background colors */
    --bg: var(--white);
    --bg-muted: #f8fafc;
    --bg-lifted: #f1f5f9;
    --bg-accented: #e2e8f0;
    --bg-inverted: #003d82;

    /* Additional colors */
    --yellow-200: #fde68a;
    --yellow-300: #fcd34d;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --emerald-300: #6ee7b7;
    --pink-400: #f472b6;

    /* Font sizes */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    /* Spacing */
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    /* Rounding */
    --rounding-sm: 0.375rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;

    /* Other */
    --letter-spacing: -0.01em;
    --disabled-opacity: 40%;

    /* ============================
       Premium Design Tokens
       ============================ */
    --shadow-sm: 0 1px 2px 0 rgba(0, 123, 255, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 123, 255, 0.07), 0 2px 4px -2px rgba(0, 123, 255, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 123, 255, 0.08), 0 4px 6px -4px rgba(0, 123, 255, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 123, 255, 0.1), 0 8px 10px -6px rgba(0, 123, 255, 0.05);
    --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================
   Global Premium Overrides
   ============================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Links - Mavi */
a {
    color: var(--primary);
    transition: var(--transition-base);
}

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

/* ============================
   Header Premium Styling
   ============================ */

header.header {
    background: linear-gradient(180deg, #ffffff 0%, var(--primary-50) 100%);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 100;
}

header.header .topbar {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
}

header.header .navbar a {
    color: var(--primary-900);
    font-weight: 500;
    transition: var(--transition-base);
}

header.header .navbar a:hover {
    color: var(--primary);
}

header.header .toolbar .nav-link {
    border-color: var(--primary-200);
    color: var(--primary-700);
    transition: var(--transition-base);
}

header.header .toolbar .nav-link:hover {
    background-color: var(--primary-50);
    border-color: var(--primary-400);
    color: var(--primary);
}

header.header .toolbar .nav-link .badge {
    background-color: var(--primary) !important;
    color: white !important;
}

header.header .search {
    border-color: var(--primary-200);
    transition: var(--transition-base);
}

header.header .search:focus-within {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

header.header .search .btn {
    color: var(--primary-400);
}

header.header .dropdown-item.active,
header.header .dropdown-item:active {
    background-color: var(--primary-100);
    color: var(--primary-800);
}

header.header .main-navbar-wrapper {
    border-top: 1px solid var(--primary-100);
}

/* Navbar link hover aksan */
#nav .nav-item .nav-link {
    position: relative;
    padding-bottom: 8px;
}

#nav .nav-item .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.25s ease;
}

#nav .nav-item .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ============================
   Breadcrumb
   ============================ */

.master-breadcrumb {
    background-color: var(--primary-50) !important;
    border-bottom: 1px solid var(--primary-100);
}

.master-breadcrumb .breadcrumb {
    background-color: transparent !important;
}

.master-breadcrumb .breadcrumb a {
    color: var(--primary);
}

.master-breadcrumb .breadcrumb a:hover {
    color: var(--primary-lifted);
}

/* ============================
   Buttons – Premium Mavi
   ============================ */

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lifted) 100%) !important;
    border-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    transition: var(--transition-base) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, var(--primary-lifted) 0%, var(--primary-accented) 100%) !important;
    border-color: var(--primary-lifted) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.35) !important;
    transform: translateY(-1px);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.btn-default {
    border-color: var(--primary-200);
    transition: var(--transition-base);
}

.btn-default:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.15);
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    transition: var(--transition-base) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn-link {
    color: var(--primary);
}

.btn-link:hover {
    color: var(--primary-lifted);
}

#btnDomainContinue {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* ============================
   Cards – Premium
   ============================ */

body .primary-content .card {
    border: 1px solid var(--primary-100);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

body .primary-content .card:hover {
    box-shadow: var(--shadow-md);
}

.primary-content .card-title {
    color: var(--primary-900);
    font-weight: 600;
}

/* ============================
   Sidebar – Premium
   ============================ */

.sidebar .card-sidebar {
    border: 1px solid var(--primary-100);
    box-shadow: var(--shadow-sm);
}

.sidebar .card-header {
    color: var(--primary-900);
    font-weight: 600;
    border-bottom: 1px solid var(--primary-100);
}

.sidebar .list-group-item {
    transition: var(--transition-base);
}

.sidebar .list-group-item:hover {
    background-color: var(--primary-50);
}

.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover,
.sidebar .list-group-item.active:focus {
    background-color: var(--primary-50) !important;
    color: var(--primary) !important;
    border-left: 3px solid var(--primary);
    font-weight: 500;
}

.sidebar .btn-success {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.sidebar .btn-success:hover {
    background: var(--primary-lifted) !important;
    border-color: var(--primary-lifted) !important;
}

/* ============================
   Tables – Premium
   ============================ */

.dataTables_wrapper table.table-list {
    border-color: var(--primary-200);
    overflow: hidden;
}

.dataTables_wrapper table.table-list thead th {
    background-color: var(--primary-50);
    color: var(--primary-900);
    font-weight: 600;
    border-bottom: 3px solid rgba(0, 123, 255, 0.15) !important;
}

.table-list>tbody>tr:hover>td {
    background-color: var(--primary-50) !important;
}

.page-item.active .page-link {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.pagination>li>a,
.pagination>li>span {
    color: var(--primary-700);
}

.pagination>li>a:hover {
    color: var(--primary);
    background-color: var(--primary-50);
}

/* ============================
   Home Page – Premium
   ============================ */

/* Domain Search */
.home-domain-search .input-group-wrapper {
    border-color: var(--primary-200) !important;
    box-shadow: var(--shadow-md);
    border-radius: var(--rounding-lg) !important;
}

/* Action Icon Buttons */
.action-icon-btns a {
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow) !important;
    border: 1px solid var(--primary-100) !important;
}

.action-icon-btns a:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    color: var(--primary) !important;
}

.action-icon-btns a .ico-container i {
    color: var(--primary-300) !important;
    transition: var(--transition-slow);
}

.action-icon-btns a:hover .ico-container i {
    color: var(--primary) !important;
}

/* Homepage product cards */
.card-columns.home .card {
    border-color: var(--primary-100);
    transition: var(--transition-base);
}

.card-columns.home .card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

/* ============================
   Client Home – Tiles
   ============================ */

.tiles .tile {
    background-color: var(--primary-50) !important;
    border-color: var(--primary-200) !important;
    transition: var(--transition-base);
}

.tiles .tile:hover {
    background-color: var(--primary-100) !important;
}

.tiles .tile .title {
    color: var(--primary-700) !important;
}

.tiles .tile i {
    color: var(--primary-200) !important;
}

.tiles .tile:hover i {
    color: var(--primary-300) !important;
}

.tiles .tile .stat {
    color: var(--primary-900);
}

/* Client home cards */
body .primary-content .client-home-cards .card .card-header .btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

body.dark-mode .primary-content .client-home-cards .card .card-header .btn,
body.dark-mode .primary-content .client-home-cards .mc-promo-login .card-header .btn,
body.dark-mode .primary-content .client-home-cards .mc-promo-manage .card-header .btn {
    background: #334155 !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
    transition: all 0.2s ease;
}

body.dark-mode .primary-content .client-home-cards .card .card-header .btn:hover,
body.dark-mode .primary-content .client-home-cards .mc-promo-login .card-header .btn:hover,
body.dark-mode .primary-content .client-home-cards .mc-promo-manage .card-header .btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    transform: translateY(-1px);
}

body .primary-content .client-home-cards .card .btn-success {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

body .primary-content .client-home-cards .card .btn-success:hover {
    background: var(--primary-lifted) !important;
    border-color: var(--primary-lifted) !important;
}

/* ============================
   Footer – Premium
   ============================ */

footer.footer {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-950) 100%) !important;
}

footer.footer .copyright {
    color: var(--primary-300) !important;
}

footer.footer .nav-link:hover {
    color: var(--primary-200) !important;
}

footer.footer .btn-outline-light {
    border-color: var(--primary-400);
    color: var(--primary-200);
}

footer.footer .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-300);
}

/* ============================
   Support Pages
   ============================ */

.announcements .announcement article {
    border-left-color: var(--primary) !important;
    background-color: var(--primary-50) !important;
}

.view-ticket .posted-by {
    background-color: var(--primary-50) !important;
}

/* ============================
   Forms – Premium
   ============================ */

.form-control:focus {
    border-color: var(--primary-400) !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
}

.input-group .btn-reveal-pw:hover,
.input-group .btn-reveal-pw:active {
    color: var(--primary) !important;
}

/* ============================
   Modals
   ============================ */

.modal .modal-header {
    background-color: var(--primary-50) !important;
    border-bottom: 1px solid var(--primary-100);
}

.modal .btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Localisation Modal */
.modal-localisation .modal-content {
    background-color: var(--primary-900) !important;
}

.modal-localisation .item-selector .item:hover {
    background-color: var(--primary-100) !important;
    color: var(--primary-900) !important;
}

.modal-localisation .item-selector .item.active {
    background-color: var(--primary-200) !important;
    border-color: var(--primary-300) !important;
    color: var(--primary-900) !important;
}

/* ============================
   Alerts
   ============================ */

.alert-info {
    background-color: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary-800);
}

/* ============================
   Labels & Badges
   ============================ */

.badge-dark {
    background-color: var(--primary) !important;
}

.badge-primary {
    background-color: var(--primary) !important;
}

/* ============================
   Knowledge Base
   ============================ */

.kb-category a:hover {
    background-color: var(--primary-50) !important;
}

.kb-article-item:hover {
    background-color: var(--primary-50) !important;
}

/* ============================
   Domain Search Bar Home
   ============================ */

body #frmDomainHomepage .btn {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

body #frmDomainHomepage .btn:hover,
body #frmDomainHomepage .btn:focus {
    background: var(--primary-lifted) !important;
    border-color: var(--primary-lifted) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

body #frmDomainHomepage #btnTransfer {
    background: var(--primary-700) !important;
    border-color: var(--primary-700) !important;
}

body #frmDomainHomepage #btnTransfer:hover {
    background: var(--primary-800) !important;
    border-color: var(--primary-800) !important;
}

/* ============================
   Selection / Focus States
   ============================ */

::selection {
    background-color: var(--primary-200);
    color: var(--primary-900);
}

:focus-visible {
    outline: 2px solid var(--primary-400);
    outline-offset: 2px;
}

/* ============================
   Scrollbar Styling
   ============================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-50);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-400);
}

/* ============================
   Bootstrap Switch
   ============================ */

.bootstrap-switch.bootstrap-switch-small.bootstrap-switch-focused {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* Security settings btn */
.btn.btn-success.open-modal.twofa-config-link.enable:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.btn.btn-success.open-modal.twofa-config-link.enable:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* Change password disabled btn */
body form.using-password-strength .btn-primary:disabled {
    background: var(--primary-300) !important;
    border-color: var(--primary-300) !important;
    opacity: 0.6;
}

/* ============================
   Enable Auto Renew btn
   ============================ */

body .primary-content .btn-success.btn-lg[name='enable'] {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

body .primary-content .btn-success.btn-lg[name='enable']:hover {
    background: var(--primary-lifted) !important;
    border-color: var(--primary-lifted) !important;
}

body .primary-content .btn-success.btn-lg[name='enable']:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* Main body btn-outline-primary override */
body #main-body .btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

body #main-body .btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

/* ============================
   View Invoice
   ============================ */

.invoice-header {
    background-color: var(--primary-50);
}


/* ################################################################
   ##                                                            ##
   ##   FAZ 2 — PREMIUM MODERNİZASYON                           ##
   ##                                                            ##
   ################################################################ */


/* ============================
   1. Sticky Header + Scroll
   ============================ */

header.header {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

header.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 61, 130, 0.12);
}

header.header.scrolled .navbar.navbar-light .container {
    padding-top: 0;
    padding-bottom: 0;
}

header.header.scrolled .logo-img {
    max-height: 45px;
    transition: max-height 0.3s ease;
}

/* Navbar pill hover */
#nav>.nav-item>.nav-link {
    padding: 6px 14px !important;
    border-radius: var(--rounding-md);
    transition: var(--transition-base);
    font-weight: 500;
    color: var(--primary-900) !important;
}

#nav>.nav-item>.nav-link:hover,
#nav>.nav-item>.nav-link:focus {
    background-color: var(--primary-50);
    color: var(--primary) !important;
}

#nav>.nav-item>.nav-link::after {
    display: none;
}

/* Dropdown menü */
header.header .dropdown-menu {
    border: 1px solid var(--primary-100);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    border-radius: var(--rounding-md);
}

header.header .dropdown-item {
    border-radius: var(--rounding-sm);
    padding: 8px 12px;
    transition: var(--transition-base);
}

header.header .dropdown-item:hover {
    background-color: var(--primary-50);
    color: var(--primary);
}

/* Mobile hamburger modern */
header.header .toolbar .nav-link[data-toggle="collapse"] {
    border-color: var(--primary-200);
    color: var(--primary);
}

/* Secondary navbar modern */
.navbar-nav.ml-auto>.nav-item>.nav-link {
    font-weight: 500;
    border-radius: var(--rounding-md);
    padding: 6px 14px !important;
    transition: var(--transition-base);
}

.navbar-nav.ml-auto>.nav-item>.nav-link:hover {
    background-color: var(--primary-50);
}


/* ============================
   2. Dashboard Tile Yeniden Tasarım
   ============================ */

/* Tile container - gap ekleme */
.tiles .row {
    margin: 0 -8px;
}

.tiles .row>div {
    padding: 0 8px;
}

.tiles .tile {
    border-radius: var(--rounding-md) !important;
    border-right: none !important;
    border: 1px solid var(--primary-100) !important;
    background-color: var(--bg) !important;
    margin-bottom: 16px;
    padding: 20px !important;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base) !important;
}

.tiles .tile::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: var(--rounding-md) 0 0 var(--rounding-md);
    transition: width 0.2s ease;
}

/* Gradient sol şeritler - her tile rengi */
.tiles .tile .highlight.bg-color-blue~.highlight,
.tiles div:nth-child(1) .tile::before {
    background: linear-gradient(180deg, var(--primary-400), var(--primary));
}

.tiles div:nth-child(2) .tile::before {
    background: linear-gradient(180deg, #34d399, #10b981);
}

.tiles div:nth-child(3) .tile::before {
    background: linear-gradient(180deg, #f87171, #ef4444);
}

.tiles div:nth-child(4) .tile::before {
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.tiles .tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-200) !important;
}

.tiles .tile:hover::before {
    width: 6px;
}

.tiles .tile .stat {
    font-size: 36px !important;
    font-weight: 700;
    color: var(--primary-900);
    margin-top: 12px;
}

.tiles .tile .title {
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-lifted) !important;
    margin-top: 4px;
}

.tiles .tile i {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    font-size: 28px !important;
    color: var(--primary-300) !important;
    display: block;
    margin-bottom: 4px;
}

.tiles .tile:hover i {
    font-size: 28px !important;
    color: var(--primary) !important;
}

.tiles .tile .highlight {
    display: none;
}

/* Responsive tile border fix */
@media (max-width: 992px) {
    .tiles div:nth-child(2)>.tile {
        border: 1px solid var(--primary-100) !important;
    }

    .tiles div:nth-child(1)>.tile,
    .tiles div:nth-child(2)>.tile {
        border-bottom: 1px solid var(--primary-100) !important;
    }
}


/* ============================
   3. Login Sayfası Premium
   ============================ */

.login-form .card {
    border: none !important;
    box-shadow: var(--shadow-xl) !important;
    border-radius: var(--rounding-lg) !important;
    overflow: hidden;
}

.login-form .card-body {
    padding: 40px !important;
}

.login-form .card-body h6.h3 {
    font-weight: 700;
    color: var(--primary-900);
    font-size: 1.6rem !important;
}

.login-form .card-body .text-muted {
    color: var(--text-lifted) !important;
    font-size: 0.95rem;
}

.login-form .form-control-label {
    font-weight: 600;
    color: var(--primary-800);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.login-form .input-group-text {
    background-color: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary);
}

.login-form .input-group-merge .form-control {
    border-left: none;
}

.login-form .input-group:focus-within .input-group-text {
    border-color: var(--primary-400);
    color: var(--primary-700);
}

.login-form #login {
    width: 100%;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--rounding-md);
}

.login-form .float-left {
    float: none !important;
    width: 100%;
    margin-bottom: 12px;
}

.login-form .text-right {
    text-align: center !important;
}

.login-form .card-footer {
    background-color: var(--primary-50) !important;
    border-top: 1px solid var(--primary-100);
    text-align: center;
    padding: 16px !important;
}

.login-form .card-footer a {
    color: var(--primary);
    font-weight: 600;
}

.login-form .card-footer a:hover {
    color: var(--primary-lifted);
}

.login-form .small.text-muted {
    color: var(--primary) !important;
}


/* ============================
   4. Domain Search Hero
   ============================ */

.home-domain-search {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 50%, var(--primary-700) 100%) !important;
    padding: 0;
}

.home-domain-search .container .p-5 {
    padding: 50px 30px !important;
}

.home-domain-search h2 {
    color: white !important;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.home-domain-search .input-group-wrapper {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    padding: 4px 4px 4px 20px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: var(--transition-base);
}

.home-domain-search .input-group-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.home-domain-search .input-group-wrapper .form-control {
    font-size: 1.05rem;
    font-weight: 400;
    border: none !important;
    background: transparent !important;
}

.home-domain-search .input-group-wrapper .btn {
    border-radius: 50px !important;
    padding: 10px 28px !important;
    font-weight: 600;
    font-size: 0.95rem;
}

/* TLD fiyat logoları */
.home-domain-search .tld-logos {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: 16px !important;
}

.home-domain-search .tld-logos li {
    color: rgba(255, 255, 255, 0.7);
}

.home-domain-search .btn-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

.home-domain-search .btn-link:hover {
    color: white !important;
}

/* Mobil butonlar */
.home-domain-search .d-sm-none .btn {
    border-radius: var(--rounding-md) !important;
    padding: 10px !important;
    font-weight: 600;
    margin-top: 12px;
}


/* ============================
   5. Anasayfa İyileştirmeleri
   ============================ */

/* Bölüm başlıkları */
#main-body h2.text-center {
    font-weight: 700;
    color: var(--primary-900);
    position: relative;
    padding-bottom: 16px;
}

#main-body h2.text-center::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-400), var(--primary));
    border-radius: 3px;
}

/* Ürün kartları */
.card-columns.home .card {
    border: 1px solid var(--primary-100) !important;
    border-radius: var(--rounding-md) !important;
    transition: var(--transition-base);
    overflow: hidden;
}

.card-columns.home .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-columns.home .card .card-title {
    font-weight: 700;
    color: var(--primary-800);
}

.card-columns.home .card .btn-outline-primary {
    border-radius: 50px !important;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Action icon butonları - daire arka planlı ikonlar */
.action-icon-btns a {
    border-radius: var(--rounding-md) !important;
    padding: 20px 10px 20px !important;
    border: 1px solid var(--primary-100) !important;
    background-color: var(--bg) !important;
    position: relative;
    overflow: hidden;
}

.action-icon-btns a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-300), var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-icon-btns a:hover::before {
    opacity: 1;
}

.action-icon-btns a .ico-container {
    width: 70px;
    height: 70px;
    line-height: 70px !important;
    border-radius: 50%;
    background: var(--primary-50);
    margin: 0 auto 12px !important;
    transition: var(--transition-base) !important;
}

.action-icon-btns a .ico-container i {
    font-size: 1.6em !important;
    line-height: 70px;
}

.action-icon-btns a:hover .ico-container {
    background: var(--primary);
    font-size: 1em !important;
    transform: none;
}

.action-icon-btns a:hover .ico-container i {
    color: white !important;
    font-size: 1.6em !important;
}


/* ============================
   6. Footer Upgrade
   ============================ */

footer.footer {
    position: relative;
    padding-top: 40px !important;
}

footer.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-400), var(--primary), var(--primary-300));
}

footer.footer .nav-link {
    padding: 4px 12px;
    border-radius: var(--rounding-sm);
    transition: var(--transition-base);
}

footer.footer .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

footer.footer .copyright {
    margin-top: 24px !important;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem !important;
}

/* Sosyal medya ikonları */
footer.footer .list-inline-item .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    border-color: rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

footer.footer .list-inline-item .btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}


/* ============================
   7. Genel UI Premium Polish
   ============================ */

/* --- Status Badge Pill --- */
.label,
.badge {
    border-radius: 50px !important;
    padding: 4px 10px !important;
    font-size: 0.72rem !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* --- Breadcrumb Modern --- */
.master-breadcrumb {
    padding: 4px 0;
    border-bottom: 1px solid var(--primary-100) !important;
}

.master-breadcrumb .breadcrumb {
    font-size: 0.85rem !important;
}

.master-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: '\f054' !important;
    font-family: 'Font Awesome 6 Pro';
    font-size: 0.6em;
    font-weight: 900;
    vertical-align: middle;
    color: var(--primary-300);
}

.master-breadcrumb .breadcrumb-item.active {
    font-weight: 600;
    color: var(--primary-800) !important;
}

/* --- Sidebar Premium --- */
.sidebar .card-sidebar {
    border-radius: var(--rounding-md) !important;
    overflow: hidden;
}

.sidebar .card-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-700) !important;
    padding: 14px 16px !important;
}

.sidebar .list-group-item {
    border-left: 3px solid transparent;
    transition: var(--transition-base) !important;
}

.sidebar .list-group-item:hover {
    border-left-color: var(--primary-200);
    padding-left: 19px;
}

.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover {
    border-left-color: var(--primary) !important;
    background-color: var(--primary-50) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    padding-left: 19px;
}

/* --- Card Header Modern --- */
.primary-content .card {
    border-color: var(--primary-100) !important;
    border-radius: var(--rounding-md) !important;
    overflow: hidden;
}

.primary-content .card-title {
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    color: var(--primary-900);
    position: relative;
    padding-bottom: 12px;
}

.primary-content .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* --- Tablo Zebra-Striping --- */
.table-list>tbody>tr:nth-child(even)>td {
    background-color: var(--primary-50);
}

.table-list>tbody>tr:hover>td {
    background-color: var(--primary-100) !important;
}

.dataTables_wrapper table.table-list thead th {
    font-weight: 600 !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary-700) !important;
}

/* --- Alert Modern Border --- */
.alert {
    border-left-width: 4px !important;
    border-radius: var(--rounding-md) !important;
}

.alert-success {
    border-left-color: var(--success) !important;
    background-color: #ecfdf5;
    color: #065f46;
}

.alert-danger {
    border-left-color: var(--error) !important;
    background-color: #fef2f2;
    color: #991b1b;
}

.alert-warning {
    border-left-color: var(--warning) !important;
    background-color: #fffbeb;
    color: #92400e;
}

.alert-info {
    border-left-color: var(--primary) !important;
    background-color: var(--primary-50);
    color: var(--primary-800);
}

/* --- Input Placeholder --- */
::placeholder {
    color: var(--text-muted) !important;
    font-style: italic;
    opacity: 0.7;
}

/* --- Section Spacing --- */
#main-body h2.text-center {
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
}

/* --- Client Home Cards Premium --- */
.client-home-cards .card {
    border-radius: var(--rounding-md) !important;
    border: 1px solid var(--primary-100) !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    overflow: hidden;
    margin-bottom: 16px !important;
}

.client-home-cards .card:hover {
    box-shadow: var(--shadow-md);
}

.client-home-cards .card-header {
    background-color: var(--bg) !important;
    border-bottom: 1px solid var(--primary-100) !important;
    padding: 16px 20px !important;
}

.client-home-cards .card-header h3 {
    font-size: 0.95rem !important;
    font-weight: 600;
    color: var(--primary-800);
}

.client-home-cards .list-group-item {
    transition: var(--transition-base);
}

.client-home-cards .list-group-item:hover {
    background-color: var(--primary-50);
}

/* --- Loading Spinner Mavi --- */
.fa-spin {
    color: var(--primary);
}

/* --- Tooltip Mavi --- */
.tooltip-inner {
    background-color: var(--primary-900);
    border-radius: var(--rounding-sm);
    font-size: 0.8rem;
    padding: 6px 12px;
}

.bs-tooltip-top .arrow::before,
.bs-tooltip-auto[x-placement^="top"] .arrow::before {
    border-top-color: var(--primary-900);
}

.bs-tooltip-bottom .arrow::before,
.bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
    border-bottom-color: var(--primary-900);
}

/* --- Popover --- */
.popover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
    border-radius: var(--rounding-md);
}

.popover-header {
    background-color: var(--primary-50);
    border-bottom-color: var(--primary-100);
    font-weight: 600;
}

/* --- Empty state text --- */
.view-cart-empty,
.list-group-item.none {
    color: var(--text-muted);
    text-align: center;
    padding: 24px !important;
}

/* --- Cart badge --- */
#cartItemCount {
    background-color: var(--primary) !important;
    color: white !important;
    font-size: 0.7rem !important;
    padding: 4px 7px !important;
}

/* --- Topbar compact --- */
header.header .topbar {
    padding: 4px 0 !important;
    font-size: 0.8rem;
}

header.header .topbar .btn {
    font-size: 0.8rem !important;
    padding: 2px 8px !important;
}

/* --- Main body section --- */
section#main-body {
    background-color: var(--bg-muted) !important;
    min-height: calc(100vh - 180px);
}

/* --- Page title h1 --- */
.primary-content h1 {
    font-weight: 700;
    color: var(--primary-900);
}

/* --- Domain pricing page --- */
.domain-pricing .featured-tld {
    border-radius: var(--rounding-md) !important;
    overflow: hidden;
    transition: var(--transition-base);
}

.domain-pricing .featured-tld:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* --- View ticket attachment --- */
.view-ticket .posted-by {
    border-radius: var(--rounding-sm) !important;
}


/* ################################################################
   ##                                                            ##
   ##   FAZ 3 — BATCH A+B ÖZELLİKLER                            ##
   ##                                                            ##
   ################################################################ */


/* ============================
   A1. Dark Mode
   ============================ */

/* Toggle Switch */
.dark-mode-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
    user-select: none;
}

.dark-mode-toggle input {
    display: none;
}

.dark-mode-toggle .toggle-track {
    width: 44px;
    height: 22px;
    background: var(--primary-200);
    border-radius: 50px;
    position: relative;
    transition: background 0.3s ease;
}

.dark-mode-toggle .toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.dark-mode-toggle input:checked + .toggle-track {
    background: var(--primary);
}

.dark-mode-toggle input:checked + .toggle-track::after {
    transform: translateX(22px);
}

.dark-mode-toggle .toggle-icon {
    font-size: 14px;
    color: var(--primary-400);
    transition: color 0.3s ease;
}

/* Dark Mode Variable Overrides */
body.dark-mode {
    --bg: #0f172a;
    --bg-muted: #0c1220;
    --bg-lifted: #1e293b;
    --bg-accented: #334155;
    --bg-inverted: #60a5fa;

    --text: #e2e8f0;
    --text-muted: #64748b;
    --text-lifted: #94a3b8;
    --text-accented: #cbd5e1;
    --text-inverted: #0f172a;

    --border-muted: #1e293b;
    --border: #334155;
    --border-lifted: #475569;
    --border-accented: #64748b;

    --primary-50: rgba(0, 123, 255, 0.08);
    --primary-100: rgba(0, 123, 255, 0.15);
    --primary-200: rgba(0, 123, 255, 0.25);

    --neutral-50: #1e293b;
    --neutral-100: #1e293b;
    --neutral-200: #334155;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);

    color: #e2e8f0;
    background-color: #0f172a;
}

body.dark-mode header.header {
    background: #1e293b !important;
    border-bottom: 1px solid #334155;
}

body.dark-mode header.header .topbar {
    background: #0c1220 !important;
}

body.dark-mode header.header .navbar a,
body.dark-mode #nav > .nav-item > .nav-link {
    color: #cbd5e1 !important;
}

body.dark-mode #nav > .nav-item > .nav-link:hover {
    background-color: #334155 !important;
    color: #60a5fa !important;
}

body.dark-mode header.header .search {
    background-color: #334155;
    border-color: #475569;
}

body.dark-mode header.header .search .form-control {
    background-color: #334155;
    color: #e2e8f0;
}

body.dark-mode header.header .dropdown-menu {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode header.header .dropdown-item {
    color: #cbd5e1;
}

body.dark-mode header.header .dropdown-item:hover {
    background-color: #334155;
    color: #60a5fa;
}

body.dark-mode section#main-body {
    background-color: #0f172a !important;
}

body.dark-mode .primary-content .card,
body.dark-mode .sidebar .card-sidebar,
body.dark-mode .client-home-cards .card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0;
}

body.dark-mode .card-header {
    background-color: #1e293b !important;
    border-bottom-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .card-title {
    color: #e2e8f0 !important;
}

body.dark-mode .card-footer {
    background-color: #1e293b !important;
    border-top-color: #334155 !important;
}

body.dark-mode .tiles .tile {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .tiles .tile .stat {
    color: #e2e8f0;
}

body.dark-mode .tiles .tile .title {
    color: #94a3b8 !important;
}

body.dark-mode .list-group-item {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .list-group-item:hover {
    background-color: #334155 !important;
}

body.dark-mode .list-group-item.active {
    background-color: rgba(0,123,255,0.15) !important;
    color: #60a5fa !important;
}

body.dark-mode .table,
body.dark-mode .table-list {
    color: #e2e8f0;
}

body.dark-mode .table-list > tbody > tr > td {
    border-color: #334155;
}

body.dark-mode .table-list > tbody > tr:nth-child(even) > td {
    background-color: rgba(0,123,255,0.05);
}

body.dark-mode .table-list > tbody > tr:hover > td {
    background-color: #334155 !important;
}

body.dark-mode .dataTables_wrapper table.table-list thead th {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
    border-bottom-color: #334155 !important;
}

body.dark-mode .form-control {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode .form-control:focus {
    background-color: #334155;
    border-color: #60a5fa !important;
    color: #e2e8f0;
}

body.dark-mode .input-group-text {
    background-color: #475569;
    border-color: #475569;
    color: #94a3b8;
}

body.dark-mode .master-breadcrumb {
    background-color: #1e293b !important;
    border-bottom-color: #334155 !important;
}

body.dark-mode .breadcrumb-item,
body.dark-mode .breadcrumb-item a {
    color: #94a3b8 !important;
}

body.dark-mode .breadcrumb-item.active {
    color: #e2e8f0 !important;
}

body.dark-mode footer.footer {
    background: linear-gradient(135deg, #020617 0%, #0c1220 100%) !important;
}

body.dark-mode .btn-default {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode .btn-default:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

body.dark-mode .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white !important;
}

body.dark-mode .btn-success {
    color: white !important;
}

body.dark-mode .btn-outline-primary {
    color: #60a5fa;
    border-color: #60a5fa;
}

body.dark-mode .btn-outline-primary:hover {
    background-color: var(--primary);
    color: white !important;
}

body.dark-mode .btn-outline-secondary {
    color: #94a3b8;
    border-color: #475569;
}

body.dark-mode .btn-outline-secondary:hover {
    background-color: #334155;
    color: #e2e8f0 !important;
}

body.dark-mode .btn-light {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0 !important;
}

body.dark-mode .btn-light:hover {
    background-color: #475569;
    color: white !important;
}

body.dark-mode .btn-link {
    color: #60a5fa !important;
}

body.dark-mode .btn-link:hover {
    color: #93c5fd !important;
}

body.dark-mode .btn-active-client {
    color: #e2e8f0 !important;
}

body.dark-mode .btn-active-client:hover {
    background-color: #475569 !important;
    color: white !important;
}

body.dark-mode .btn-info {
    color: white !important;
}

body.dark-mode .btn-info:hover {
    filter: brightness(1.15);
}

body.dark-mode .btn-warning {
    color: #0f172a !important;
}

body.dark-mode .btn-warning:hover {
    filter: brightness(1.1);
}

body.dark-mode .btn-danger {
    color: white !important;
}

body.dark-mode .btn-danger:hover {
    filter: brightness(1.15);
}

/* Genel btn dark mode hover */
body.dark-mode .btn {
    color: #e2e8f0;
    transition: all 0.2s ease;
}

body.dark-mode .btn:hover {
    color: white;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-1px);
}

body.dark-mode .btn-primary:hover {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
    filter: brightness(1.1);
}

body.dark-mode .btn-success:hover {
    filter: brightness(1.15);
    color: white !important;
}

body.dark-mode .btn-light:hover {
    background-color: #475569 !important;
    color: white !important;
}

body.dark-mode .btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

body.dark-mode .btn-outline-secondary:hover {
    background-color: #475569 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .modal-content {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .modal-header {
    background-color: #0f172a !important;
    border-bottom-color: #334155 !important;
}

body.dark-mode .alert-info {
    background-color: rgba(0,123,255,0.1);
    border-color: #334155;
    color: #93c5fd;
}

body.dark-mode .alert-success {
    background-color: rgba(16,185,129,0.1);
    border-color: #334155;
    color: #6ee7b7;
}

body.dark-mode .alert-danger {
    background-color: rgba(239,68,68,0.1);
    border-color: #334155;
    color: #fca5a5;
}

body.dark-mode .alert-warning {
    background-color: rgba(245,158,11,0.1);
    border-color: #334155;
    color: #fcd34d;
}

body.dark-mode .sidebar .card-header {
    color: #94a3b8 !important;
}

body.dark-mode a {
    color: #60a5fa;
}

body.dark-mode a:hover {
    color: #93c5fd;
}

body.dark-mode .pagination > li > a {
    background-color: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

body.dark-mode .page-item.active .page-link {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

body.dark-mode .toggle-icon {
    color: #fbbf24 !important;
}

body.dark-mode .view-ticket .posted-by {
    background-color: #1e293b !important;
}

body.dark-mode ::placeholder {
    color: #64748b !important;
}

body.dark-mode .text-muted {
    color: #64748b !important;
}


/* ============================
   A2. Back to Top Butonu
   ============================ */

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1040;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lifted) 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
    transform: translateY(-3px);
}

@keyframes backToTopPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(0, 123, 255, 0.5); }
}

#backToTop.visible {
    animation: backToTopPulse 2s infinite;
}

#backToTop:hover {
    animation: none;
}

/* WhatsApp buton offset */
body:has(#whatsappBtn) #backToTop {
    bottom: 85px;
}


/* ============================
   A4. Toast Bildirimleri
   ============================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.toast-notification {
    background: white;
    border-radius: var(--rounding-md);
    box-shadow: var(--shadow-lg);
    padding: 0;
    overflow: hidden;
    pointer-events: all;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--primary);
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.toast-success { border-left-color: var(--success); }
.toast-notification.toast-danger { border-left-color: var(--error); }
.toast-notification.toast-warning { border-left-color: var(--warning); }
.toast-notification.toast-info { border-left-color: var(--primary); }

.toast-notification .toast-body {
    padding: 14px 40px 14px 16px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
}

.toast-notification .toast-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.toast-notification .toast-close:hover {
    color: var(--text);
}

.toast-notification .toast-progress {
    height: 3px;
    background: var(--primary-200);
    width: 100%;
}

.toast-notification .toast-progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width linear;
}

.toast-notification.toast-success .toast-progress-bar { background: var(--success); }
.toast-notification.toast-danger .toast-progress-bar { background: var(--error); }
.toast-notification.toast-warning .toast-progress-bar { background: var(--warning); }

/* Dark mode toast */
body.dark-mode .toast-notification {
    background: #1e293b;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

body.dark-mode .toast-notification .toast-body {
    color: #e2e8f0;
}


/* ============================
   B6. Smooth Page Transitions
   ============================ */

body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

body.page-exit {
    opacity: 0;
}


/* ============================
   B7. Skeleton Loading
   ============================ */

.skeleton {
    background: linear-gradient(90deg,
        var(--primary-50) 25%,
        var(--primary-100) 50%,
        var(--primary-50) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--rounding-sm);
    color: transparent !important;
    pointer-events: none;
    user-select: none;
}

.skeleton * {
    visibility: hidden;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Dark mode skeleton */
body.dark-mode .skeleton {
    background: linear-gradient(90deg,
        #1e293b 25%,
        #334155 50%,
        #1e293b 75%
    );
    background-size: 200% 100%;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 80%;
}

.skeleton-title {
    height: 20px;
    margin-bottom: 12px;
    width: 60%;
}

.skeleton-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.skeleton-card {
    height: 120px;
}


/* ============================
   D15. WhatsApp Butonu
   ============================ */

#whatsappBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1040;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    text-decoration: none;
}

#whatsappBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white;
    text-decoration: none;
}

@keyframes whatsappBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

#whatsappBtn.bounce {
    animation: whatsappBounce 2s ease infinite;
}

#whatsappBtn .wa-tooltip {
    position: absolute;
    right: 62px;
    background: #1e293b;
    color: white;
    padding: 6px 12px;
    border-radius: var(--rounding-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#whatsappBtn:hover .wa-tooltip {
    opacity: 1;
}

/* Dark mode WhatsApp */
body.dark-mode #whatsappBtn .wa-tooltip {
    background: #334155;
}


/* ============================
   D13. Mobil Bottom Navigation
   ============================ */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        background: white;
        border-top: 1px solid var(--primary-100);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        padding: 6px 0 env(safe-area-inset-bottom, 0);
    }

    .mobile-bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 4px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.65rem;
        font-weight: 500;
        transition: color 0.2s ease;
        gap: 3px;
    }

    .mobile-bottom-nav a i {
        font-size: 18px;
    }

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

    .mobile-bottom-nav a.active i {
        color: var(--primary);
    }

    /* Body padding for mobile nav */
    body {
        padding-bottom: 60px;
    }

    /* WhatsApp ve Back to Top offset */
    #whatsappBtn {
        bottom: 75px;
    }

    #backToTop {
        bottom: 75px;
    }

    body:has(#whatsappBtn) #backToTop {
        bottom: 135px;
    }

    /* Dark mode mobile nav */
    body.dark-mode .mobile-bottom-nav {
        background: #1e293b;
        border-top-color: #334155;
    }

    body.dark-mode .mobile-bottom-nav a {
        color: #64748b;
    }

    body.dark-mode .mobile-bottom-nav a.active,
    body.dark-mode .mobile-bottom-nav a:hover {
        color: #60a5fa;
    }
}


/* ################################################################
   ##                                                            ##
   ##   FAZ 3 — BATCH C+D ÖZELLİKLER                            ##
   ##                                                            ##
   ################################################################ */


/* ============================
   C10. Fiyat/Sipariş Kartları
   ============================ */

body #order-standard_cart .cart-body .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

body #order-standard_cart .cart-body .products .product {
    border: 1px solid var(--primary-100) !important;
    border-radius: var(--rounding-md) !important;
    transition: var(--transition-base);
    overflow: hidden;
    position: relative;
}

body #order-standard_cart .cart-body .products .product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200) !important;
}

body #order-standard_cart .cart-body .products .product header {
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%) !important;
    padding: 20px !important;
    border-bottom: 1px solid var(--primary-100) !important;
}

body #order-standard_cart .cart-body .products .product .product-name {
    font-weight: 700;
    color: var(--primary-800);
    font-size: 1.1rem;
}

body #order-standard_cart .cart-body .products .product .product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

body #order-standard_cart .cart-body .products .product .btn-order-now {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lifted) 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 28px !important;
    font-weight: 600;
    transition: var(--transition-base) !important;
}

body #order-standard_cart .cart-body .products .product .btn-order-now:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Popüler badge */
body #order-standard_cart .cart-body .products .product.featured::before {
    content: 'Popüler';
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--primary);
    color: white;
    padding: 4px 40px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 1;
    letter-spacing: 0.05em;
}

/* Feature list checkmarks */
body #order-standard_cart .product-desc ul {
    list-style: none !important;
    padding-left: 0 !important;
}

body #order-standard_cart .product-desc ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--primary-50);
    position: relative;
    padding-left: 24px;
}

body #order-standard_cart .product-desc ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success);
    font-size: 0.85rem;
}

/* Dark mode pricing cards */
body.dark-mode #order-standard_cart .cart-body .products .product {
    border-color: #334155 !important;
    background: #1e293b;
}

body.dark-mode #order-standard_cart .cart-body .products .product header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

body.dark-mode #order-standard_cart .cart-body .products .product:hover {
    border-color: #475569 !important;
}


/* ============================
   C11. SVG Boş Durum İllüstrasyonları
   ============================ */

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 40px;
    color: var(--primary-300);
}

.empty-state h4 {
    font-weight: 600;
    color: var(--text-lifted);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
    max-width: 300px;
    margin: 0 auto;
}

body.dark-mode .empty-state-icon {
    background: rgba(0,123,255,0.1);
}


/* ============================
   D12. Arama Önerileri
   ============================ */

header.header .search {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--primary-100);
    border-top: none;
    border-radius: 0 0 var(--rounding-md) var(--rounding-md);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1050;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions.active {
    display: block;
}

.search-suggestions .suggestion-group {
    padding: 8px 0;
    border-bottom: 1px solid var(--primary-50);
}

.search-suggestions .suggestion-group:last-child {
    border-bottom: none;
}

.search-suggestions .suggestion-title {
    padding: 4px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.search-suggestions .suggestion-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s ease;
    gap: 10px;
    cursor: pointer;
}

.search-suggestions .suggestion-item:hover {
    background-color: var(--primary-50);
    color: var(--primary);
}

.search-suggestions .suggestion-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-300);
    font-size: 0.9rem;
}

/* Search input focus expand */
header.header .search .form-control:focus {
    min-width: 280px;
}

/* Dark mode search suggestions */
body.dark-mode .search-suggestions {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .search-suggestions .suggestion-item:hover {
    background-color: #334155;
    color: #60a5fa;
}


/* ============================
   Ek: Sipariş Sayfası İyileştirmeleri
   ============================ */

/* Domain checker sonuç */
body #order-standard_cart .domain-checker-result-available {
    background-color: var(--primary-50);
    border-color: var(--success) !important;
    border-radius: var(--rounding-md);
}

body #order-standard_cart .domain-checker-result-unavailable {
    border-radius: var(--rounding-md);
}

/* Checkout form modern */
body #order-standard_cart #frmCheckout .form-control {
    border-radius: var(--rounding-md);
    transition: var(--transition-base);
}

/* Order summary total */
body #order-standard_cart .order-summary .total-due {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}


/* ################################################################
   ##                                                            ##
   ##   FAZ 4 — PREMIUM ÖZELLİKLER                              ##
   ##                                                            ##
   ################################################################ */


/* ============================
   1. Profil Dropdown Menü
   ============================ */

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: white;
    border: 1px solid var(--primary-100);
    border-radius: var(--rounding-md);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1060;
    overflow: hidden;
}

.profile-dropdown.open .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
    border-bottom: 1px solid var(--primary-100);
    text-align: center;
}

.profile-dropdown-header .profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 8px;
}

.profile-dropdown-header .profile-name {
    font-weight: 600;
    color: var(--primary-900);
    font-size: 0.95rem;
}

.profile-dropdown-header .profile-email {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.profile-dropdown-menu .dropdown-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.15s ease;
    gap: 10px;
    font-size: 0.9rem;
}

.profile-dropdown-menu .dropdown-link:hover {
    background-color: var(--primary-50);
    color: var(--primary);
}

.profile-dropdown-menu .dropdown-link i {
    width: 18px;
    text-align: center;
    color: var(--primary-300);
}

.profile-dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--primary-100);
    margin: 4px 0;
}

.profile-dropdown-menu .dropdown-link.logout {
    color: var(--error);
}

.profile-dropdown-menu .dropdown-link.logout i {
    color: var(--error);
}

body.dark-mode .profile-dropdown-menu {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .profile-dropdown-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom-color: #334155;
}

body.dark-mode .profile-dropdown-header .profile-name { color: #e2e8f0; }
body.dark-mode .profile-dropdown-menu .dropdown-link { color: #cbd5e1; }
body.dark-mode .profile-dropdown-menu .dropdown-link:hover { background: #334155; color: #60a5fa; }
body.dark-mode .profile-dropdown-menu .dropdown-divider { background: #334155; }


/* ============================
   2. Bildirim Merkezi
   ============================ */

#accountNotifications + .popover,
.popover.client-alerts-popover {
    max-width: 340px;
    border: 1px solid var(--primary-100);
    border-radius: var(--rounding-md);
    box-shadow: var(--shadow-xl);
}

.client-alerts li {
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--primary-50);
    transition: background 0.15s ease;
}

.client-alerts li:last-child { border-bottom: none; }
.client-alerts li:hover { background-color: var(--primary-50); }

.client-alerts li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.client-alerts li a i {
    margin-top: 2px;
    font-size: 1rem;
}

.client-alerts li a .message {
    font-size: 0.85rem;
    line-height: 1.4;
}

.client-alerts li.none {
    text-align: center;
    color: var(--text-muted);
    padding: 24px !important;
}

body.dark-mode .client-alerts li { border-bottom-color: #334155; }
body.dark-mode .client-alerts li:hover { background-color: #334155; }
body.dark-mode .client-alerts li a { color: #cbd5e1; }


/* ============================
   3. Hoş Geldin Banner
   ============================ */

.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lifted) 100%);
    border-radius: var(--rounding-md);
    padding: 24px 28px;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.welcome-banner h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.welcome-banner p {
    opacity: 0.85;
    margin: 0;
    font-size: 0.9rem;
}

.welcome-banner .welcome-stats {
    display: flex;
    gap: 20px;
}

.welcome-banner .welcome-stat {
    text-align: center;
    background: rgba(255,255,255,0.15);
    padding: 10px 18px;
    border-radius: var(--rounding-md);
}

.welcome-banner .welcome-stat .stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}

.welcome-banner .welcome-stat .stat-label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .welcome-banner { flex-direction: column; text-align: center; }
    .welcome-banner .welcome-stats { justify-content: center; }
}

body.dark-mode .welcome-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
}


/* ============================
   4. Aktivite Timeline
   ============================ */

.activity-timeline {
    position: relative;
    padding-left: 28px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-100);
}

.activity-timeline .timeline-item {
    position: relative;
    padding: 8px 0 16px 0;
}

.activity-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    z-index: 1;
}

.activity-timeline .timeline-item .timeline-content {
    font-size: 0.85rem;
    color: var(--text);
}

.activity-timeline .timeline-item .timeline-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

body.dark-mode .activity-timeline::before { background: #334155; }
body.dark-mode .activity-timeline .timeline-item::before { border-color: #1e293b; }


/* ============================
   5. Servis Durum Kartları
   ============================ */

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    position: relative;
}

.status-dot.active { background: #10b981; }
.status-dot.pending { background: #f59e0b; }
.status-dot.suspended { background: #ef4444; }
.status-dot.terminated { background: #6b7280; }
.status-dot.cancelled { background: #9ca3af; }

.status-dot.active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0; }
}

.status-label { font-size: 0.8rem; font-weight: 500; }
.status-label.active { color: #10b981; }
.status-label.pending { color: #f59e0b; }
.status-label.suspended { color: #ef4444; }


/* ============================
   6. Ticket Öncelik Renkleri
   ============================ */

.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}

.priority-badge.emergency {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.priority-badge.high {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.priority-badge.medium {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.priority-badge.low {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}


/* ============================
   7. Şifre Güç Göstergesi
   ============================ */

.password-strength {
    margin-top: 6px;
}

.password-strength-bar {
    height: 4px;
    border-radius: 4px;
    background: var(--primary-100);
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0;
}

.password-strength-fill.weak { width: 25%; background: #ef4444; }
.password-strength-fill.fair { width: 50%; background: #f59e0b; }
.password-strength-fill.good { width: 75%; background: #3b82f6; }
.password-strength-fill.strong { width: 100%; background: #10b981; }

.password-strength-text {
    font-size: 0.72rem;
    margin-top: 3px;
    font-weight: 500;
}

.password-strength-text.weak { color: #ef4444; }
.password-strength-text.fair { color: #f59e0b; }
.password-strength-text.good { color: #3b82f6; }
.password-strength-text.strong { color: #10b981; }


/* ============================
   8. Fatura Yazdırma Stili
   ============================ */

@media print {
    header.header, footer.footer,
    .sidebar, .master-breadcrumb,
    #backToTop, #whatsappBtn,
    .mobile-bottom-nav, .toast-container,
    .fab-container, .btn-return-to-admin,
    .topbar { display: none !important; }

    body, body.dark-mode {
        background: white !important;
        color: #000 !important;
        font-size: 12pt;
    }

    section#main-body {
        background: white !important;
        padding: 0 !important;
    }

    .primary-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .primary-content .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .primary-content .card-title::after { display: none; }

    a { color: #000 !important; text-decoration: none !important; }
    .btn { display: none !important; }

    .invoice-header {
        background: var(--primary) !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    table { border-collapse: collapse; width: 100%; }
    th, td { border: 1px solid #ddd; padding: 8px; }
}


/* ============================
   9. Boş Durum Animasyonları
   ============================ */

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

.empty-state-icon {
    animation: emptyFloat 3s ease-in-out infinite;
}

.empty-state-icon i {
    transition: color 0.3s ease;
}

.empty-state:hover .empty-state-icon i {
    color: var(--primary);
}


/* ============================
   10. Quick Actions FAB
   ============================ */

.fab-container {
    position: fixed;
    bottom: 95px;
    right: 30px;
    z-index: 1040;
}

.fab-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.fab-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.fab-toggle.open {
    transform: rotate(45deg);
    background: var(--error);
}

.fab-actions {
    position: absolute;
    bottom: 56px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.fab-container.open .fab-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-action {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
}

.fab-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    font-size: 16px;
    transition: all 0.2s ease;
    border: none;
}

.fab-action-btn:hover {
    background: var(--primary);
    color: white;
}

.fab-action-label {
    background: #1e293b;
    color: white;
    padding: 4px 10px;
    border-radius: var(--rounding-sm);
    font-size: 0.78rem;
    font-weight: 500;
}

body.dark-mode .fab-action-btn {
    background: #334155;
    color: #60a5fa;
}

body.dark-mode .fab-action-btn:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .fab-container { bottom: 140px; }
}


/* ============================
   11. Sidebar Toggle
   ============================ */

.sidebar-toggle-btn {
    display: none;
    width: 28px;
    height: 28px;
    border-radius: var(--rounding-sm);
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    color: var(--primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: absolute;
    top: 10px;
    right: -14px;
    z-index: 5;
    transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
    background: var(--primary);
    color: white;
}

@media (min-width: 992px) {
    .sidebar-toggle-btn { display: flex; }

    .sidebar.collapsed {
        max-width: 60px !important;
        flex: 0 0 60px !important;
        overflow: hidden;
    }

    .sidebar.collapsed .card-header span,
    .sidebar.collapsed .list-group-item span,
    .sidebar.collapsed .list-group-item .badge {
        display: none;
    }

    .sidebar.collapsed .list-group-item {
        text-align: center;
        padding: 10px 8px !important;
    }

    .sidebar.collapsed .list-group-item i {
        margin: 0;
        font-size: 1.1rem;
    }

    body.dark-mode .sidebar-toggle-btn {
        background: #334155;
        border-color: #475569;
        color: #60a5fa;
    }
}


/* ============================
   12. Klavye Kısayolları Modal
   ============================ */

.shortcuts-modal {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

.shortcuts-modal.show { display: flex; }

.shortcuts-modal-content {
    background: white;
    border-radius: var(--rounding-lg);
    padding: 30px;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-xl);
}

.shortcuts-modal-content h4 {
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 16px;
}

.shortcut-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--primary-50);
}

.shortcut-row:last-child { border-bottom: none; }

.shortcut-keys kbd {
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-family: 'Inter', monospace;
    color: var(--primary-700);
    margin: 0 2px;
}

.shortcut-desc {
    color: var(--text-lifted);
    font-size: 0.85rem;
}

body.dark-mode .shortcuts-modal-content {
    background: #1e293b;
}

body.dark-mode .shortcuts-modal-content h4 { color: #e2e8f0; }
body.dark-mode .shortcut-row { border-bottom-color: #334155; }
body.dark-mode .shortcut-keys kbd { background: #334155; border-color: #475569; color: #93c5fd; }
body.dark-mode .shortcut-desc { color: #94a3b8; }


/* ============================
   14. Tablo Sıralama Animasyonu
   ============================ */

.table-list tbody tr {
    transition: background-color 0.2s ease, opacity 0.3s ease;
}

.dataTables_wrapper .table-list tbody tr {
    animation: tableRowFade 0.3s ease;
}

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


/* ============================
   15. Upsell Banner
   ============================ */

.upsell-banner {
    background: linear-gradient(135deg, #eff6ff 0%, var(--primary-50) 100%);
    border: 1px solid var(--primary-200);
    border-radius: var(--rounding-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
}

.upsell-banner .upsell-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.upsell-banner .upsell-text h5 {
    font-weight: 600;
    color: var(--primary-800);
    margin: 0 0 2px;
    font-size: 0.95rem;
}

.upsell-banner .upsell-text p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.85rem;
}

.upsell-banner .btn-upsell {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: var(--transition-base);
}

.upsell-banner .btn-upsell:hover {
    background: var(--primary-lifted);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: white;
}

body.dark-mode .upsell-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

body.dark-mode .upsell-banner .upsell-text h5 { color: #e2e8f0; }

@media (max-width: 768px) {
    .upsell-banner { flex-direction: column; text-align: center; }
}


/* ============================
   16. Referans Program Kartı
   ============================ */

.referral-card {
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
    border: 1px solid var(--primary-200);
    border-radius: var(--rounding-md);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.referral-card h5 {
    font-weight: 600;
    color: var(--primary-800);
    margin-bottom: 12px;
}

.referral-link-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.referral-link-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--primary-200);
    border-radius: var(--rounding-sm);
    font-size: 0.85rem;
    background: white;
    color: var(--text);
}

.referral-link-box .btn-copy {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--rounding-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.referral-link-box .btn-copy:hover {
    background: var(--primary-lifted);
}

.referral-link-box .btn-copy.copied {
    background: var(--success);
}

body.dark-mode .referral-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

body.dark-mode .referral-card h5 { color: #e2e8f0; }
body.dark-mode .referral-link-box input { background: #334155; border-color: #475569; color: #e2e8f0; }


/* ============================
   17. Hizmet Puanlama (Stars)
   ============================ */

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-200);
    transition: color 0.15s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #fbbf24;
}

.star-rating input:checked ~ label {
    color: #fbbf24;
}

.star-rating-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}