/* ================================
   IMPORTS
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/11.2.0/sweetalert2.min.css');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css");

/* ================================
   ANIMATIONS & KEYFRAMES
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 224, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 224, 255, 0.6), 0 0 30px rgba(0, 224, 255, 0.4);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ================================
   BASE
   ================================ */
body {
    background: linear-gradient(135deg, #0a0c10 0%, #0f1115 50%, #0a0c10 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    color: #e8e8e8;
    overflow-x: hidden;
    transition: all 0.3s ease;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 224, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 211, 102, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1140px;
}

/* ================================
   TYPOGRAPHY SYSTEM
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: #d0d0d0;
    line-height: 1.7;
    margin-bottom: 1rem;
}

label {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.01em;
}

small {
    color: #a0a0a0;
    font-size: 0.875rem;
    line-height: 1.5;
}

span {
    color: inherit;
}

/* Code and monospace elements */
code, pre, kbd, samp {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9em;
    background: rgba(0, 224, 255, 0.1);
    color: #00e0ff;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    border: 1px solid rgba(0, 224, 255, 0.2);
}

/* Links */
a {
    color: #00e0ff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

a:hover {
    color: #25d366;
    text-decoration: none;
}

/* Text utilities */
.text-muted {
    color: #8a8a8a !important;
}

.text-light {
    color: #e0e0e0 !important;
}

.text-white {
    color: #ffffff !important;
}

/* ================================
   BUTTONS
   ================================ */
.btn-default {
    background: linear-gradient(135deg, #1b6ec2, #2d8cff);
    color: #fff;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-default::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-default:hover {
    background: linear-gradient(135deg, #2d8cff, #4da3ff);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(45, 140, 255, 0.4);
}

.btn-default:hover::before {
    width: 300px;
    height: 300px;
}

.btn-default:active {
    transform: translateY(0);
}

.btn-outline-dark {
    color: #e6e6e6;
    border-color: rgba(255,255,255,.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,224,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-outline-dark:hover {
    background: rgba(0,224,255,.15);
    border-color: #00e0ff;
    color: #00e0ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 224, 255, 0.3);
}

.btn-outline-dark:hover::before {
    left: 100%;
}

.btn-outline-danger {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 42, 42, 0.3);
}

.btn-login {
    background: linear-gradient(135deg, #00e0ff, #0099cc);
    border: none;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-login::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 224, 255, 0.5);
}

.btn-login:hover::after {
    width: 300px;
    height: 300px;
}

.btn-login:active {
    transform: translateY(0);
}

/* ================================
   INPUTS / SELECTS
   ================================ */
.form-control,
.form-select {
    background: #ffffff;
    color: #111;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus,
.form-select:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 224, 255, 0.3);
}

.form-control::placeholder {
    color: #777;
    transition: opacity 0.3s;
}

.form-control:focus::placeholder {
    opacity: 0.5;
}

.form-check-label {
    color: #ccc;
    transition: color 0.3s;
}

.form-check-input:checked ~ .form-check-label {
    color: #00e0ff;
}

.input-group-text {
    transition: all 0.3s;
}

.form-control:focus + .input-group-text,
.form-control:focus ~ .input-group-text {
    border-color: #00e0ff;
    color: #00e0ff;
}

/* ================================
   CARDS (MAIN PANELS)
   ================================ */
.card {
    background: rgba(20, 24, 33, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.05), transparent);
    transition: left 0.6s;
    z-index: 0;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 224, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 224, 255, 0.15);
}

.card:hover::before {
    left: 100%;
}

.card-body {
    animation: fadeIn 0.8s ease-out 0.2s both;
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

.card-body p,
.card-body span,
.card-body div {
    color: #d0d0d0;
}

/* Card headers */
.card-header {
    background: linear-gradient(135deg, rgba(26, 31, 42, 0.9), rgba(19, 23, 34, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.15), transparent);
    animation: shimmer 4s infinite;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    margin: 0;
    color: #ffffff;
}

.login-card,
.register-card {
    animation: fadeInUp 0.6s ease-out;
    max-width: 100%;
}

.login-card:hover,
.register-card:hover {
    transform: translateY(-5px);
}

/* ================================
   ALERTS
   ================================ */
.alert {
    border-radius: 16px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #0f5132, #198754);
    color: #e6fff2;
}

.alert-warning {
    background: linear-gradient(135deg, #664d03, #ffc107);
    color: #fff8db;
}

.alert-danger {
    background: linear-gradient(135deg, #5a0f0f, #b00000);
    color: #ffdada;
}

/* ================================
   NAVBAR
   ================================ */
.navbar {
    background: linear-gradient(180deg, #141821, #0f1115);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: slideInLeft 0.5s ease-out;
}

.navbar-brand {
    transition: transform 0.3s;
    animation: fadeIn 0.6s ease-out;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand span {
    color: #fff;
    transition: color 0.3s;
}

.navbar-brand:hover span {
    color: #00e0ff;
}

.navbar-logo {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    object-fit: cover;
    transition: all 0.3s;
    animation: float 3s ease-in-out infinite;
    flex-shrink: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover .navbar-logo {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.4);
}

/* Mobile logo size */
@media (max-width: 991px) {
    .navbar-logo {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }
}

.navbar-nav .nav-link {
    color: #cfd8ff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 16px !important;
    border-radius: 8px;
    margin: 0 4px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00e0ff;
    transform: translateX(-50%);
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #00e0ff !important;
    background: rgba(0, 224, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

.dropdown-menu {
    animation: fadeInUp 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dropdown-item {
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(0, 224, 255, 0.15) !important;
    color: #00e0ff !important;
    transform: translateX(5px);
    padding-left: 20px !important;
}

/* ================================
   MOBILE NAV
   ================================ */
@media (max-width: 991px) {

    .navbar-collapse {
        padding-top: 12px;
    }

    .navbar-nav .nav-link {
        width: 100%;
        padding: 14px 16px;
        border-radius: 14px;
        background: rgba(0,224,255,0.06);
        color: #cfefff !important;
    }

    .navbar-nav .nav-link.active {
        background: linear-gradient(
            90deg,
            rgba(0,224,255,.25),
            rgba(0,224,255,.08)
        );
        box-shadow: 0 0 14px rgba(0,224,255,.35);
    }
}

/* ================================
   TABLES (KEYS FIXED)
   ================================ */
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    animation: fadeInUp 0.6s ease-out;
}

/* Dark table theme */
.table {
    min-width: 760px;
    background: #11151f;
    color: #e6e6e6;
    border-color: rgba(255,255,255,.08);
    transition: all 0.3s;
}

.table th {
    background: linear-gradient(180deg, #161b28, #131722);
    color: #ffffff;
    white-space: nowrap;
    position: relative;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00e0ff, #25d366);
    transition: width 0.3s;
}

.table th:hover::after {
    width: 100%;
}

.table td {
    background: #11151f;
    color: #e6e6e6;
    vertical-align: middle;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px;
}

.table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.table tbody tr:nth-child(even) {
    animation-delay: 0.1s;
}

.table tbody tr:nth-child(odd) {
    animation-delay: 0.2s;
}

.table tbody tr:hover {
    background: rgba(0, 224, 255, 0.08) !important;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.table tbody tr:hover td {
    color: #ffffff;
}

/* User key column */
.table td:nth-child(3) {
    color: #25d366;
    font-weight: 500;
    word-break: break-all;
    max-width: 220px;
}

/* ================================
   DATATABLES FIX
   ================================ */
.dataTables_wrapper {
    color: #e6e6e6;
}

/* prevent WHITE bars */
.dataTables_length,
.dataTables_filter,
.dataTables_length label,
.dataTables_filter label {
    color: #e6e6e6 !important;
}

/* inputs */
.dataTables_length select,
.dataTables_filter input {
    background: #0f1115 !important;
    color: #ffffff !important;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.15);
}

/* info + pagination */
.dataTables_info,
.dataTables_paginate {
    color: #ccc !important;
}

/* pagination buttons */
.page-link {
    background: #0f1115 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.15);
}

.page-item.active .page-link {
    background: #00e0ff !important;
    color: #000 !important;
}

/* ================================
   SCROLLBAR
   ================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00e0ff, #0099cc);
    border-radius: 10px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #25d366, #00e0ff);
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.5);
}

/* ================================
   FORCE FIX – EXPIRATION & HISTORY
   ================================ */

/* Expiration card text */
.expiration,
.expiration * {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* History section */
.history,
.history * {
    color: #e6e6e6 !important;
    opacity: 1 !important;
}

/* History rows fix */
.history table tr td {
    background: #11151f !important;
    color: #e6e6e6 !important;
}

/* Remove ghost / faded effect */
.history table tr {
    opacity: 1 !important;
}

/* Expiration timer highlight */
.expiration-time,
.expiration span {
    color: #00e0ff !important;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0,224,255,0.35);
}

/* History delete button */
.history .btn,
.history button {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

/* Mobile readability */
@media (max-width: 768px) {
    .history table {
        font-size: 14px;
    }
}

/* ================================
   FORCE DARK FORM CONTROLS
   ================================ */
input,
select,
textarea,
.form-control {
    background-color: #0f1115 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 12px;
}

/* Placeholder text */
input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.45) !important;
}

/* Select dropdown arrow fix (mobile) */
select {
    appearance: none;
    -webkit-appearance: none;
}

/* Focus state */
input:focus,
select:focus,
textarea:focus {
    background-color: #0f1115 !important;
    color: #ffffff !important;
    border-color: #00e0ff !important;
    box-shadow: 0 0 0 2px rgba(0,224,255,0.25);
}

/* Checkbox */
input[type="checkbox"] {
    accent-color: #00e0ff;
}

/* Estimation box */
.estimation,
#estimation {
    background-color: #0f1115 !important;
    color: #ffffff !important;
}

/* ================================
   HARD OVERRIDES (LAST SAFETY NET)
   ================================ */
table, tr, td, th {
    background-color: inherit;
    color: inherit;
}

/* ================================
   FINAL DATATABLES WHITE LEAK FIX
   ================================ */

/* Bottom info bar (Showing X to Y entries) */
.dataTables_info {
    background: #0f1115 !important;
    color: #e6e6e6 !important;
    padding: 10px 12px;
}

/* Pagination container */
.dataTables_paginate {
    background: #0f1115 !important;
    padding: 10px 12px;
}

/* Pagination buttons container */
.dataTables_paginate ul,
.pagination {
    background: #0f1115 !important;
}

/* Pagination buttons */
.page-link {
    background: #0f1115 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}

/* Active page */
.page-item.active .page-link {
    background: #00e0ff !important;
    color: #000 !important;
    border-color: #00e0ff !important;
}

/* Disabled buttons */
.page-item.disabled .page-link {
    background: rgba(255,255,255,0.05) !important;
    color: #777 !important;
}

/* Fix white strip under table (mobile bug) */
.dataTables_wrapper .row:last-child {
    background: #0f1115 !important;
}

/* ================================
   KEY TEXT VISIBILITY FIX
   ================================ */

/* Force readable green keys */
.table td,
.table td * {
    color: #e6e6e6;
}

/* User key column stronger */
.table td:nth-child(3),
.table td:nth-child(3) * {
    color: #25d366 !important;
    text-shadow: 0 0 6px rgba(37,211,102,0.25);
}

/* Prevent faded/camouflage effect */
.table tr {
    opacity: 1 !important;
}

/* ================================
   MOBILE SAFETY NET
   ================================ */
@media (max-width: 768px) {

    .dataTables_info,
    .dataTables_paginate {
        font-size: 13px;
        text-align: center;
    }

    .page-link {
        padding: 6px 10px;
    }
}

/* ================================
   FINAL WHITE AREA ELIMINATOR
   (DataTables internal rows)
   ================================ */

/* Force ALL table wrapper backgrounds dark */
.dataTables_wrapper,
.dataTables_wrapper * {
    background-color: #0f1115 !important;
}

/* Fix hidden helper rows (DataTables creates these) */
table.dataTable tbody tr,
table.dataTable tbody td {
    background-color: #11151f !important;
    color: #e6e6e6 !important;
}

/* Fix empty / filler rows */
table.dataTable tbody tr.odd,
table.dataTable tbody tr.even {
    background-color: #11151f !important;
}

/* Fix DataTables scrolling body */
.dataTables_scrollBody {
    background: #0f1115 !important;
}

/* Fix DataTables header + footer containers */
.dataTables_scrollHead,
.dataTables_scrollFoot {
    background: #0f1115 !important;
}

/* Fix phantom white block below table */
.dataTables_wrapper::after,
.dataTables_wrapper::before {
    background: #0f1115 !important;
}

/* Fix mobile bottom white padding */
.dataTables_wrapper .row {
    background: #0f1115 !important;
}

/* Prevent white background on td created dynamically */
table.dataTable td {
    background-clip: padding-box;
}

/* Force action buttons column dark */
.table td:last-child,
.table td:last-child * {
    background-color: #11151f !important;
    color: #ffffff !important;
}

/* ================================
   MOBILE DATATABLES HARD FIX
   ================================ */
@media (max-width: 991px) {

    /* Kill ALL white DataTables containers */
    .dataTables_wrapper,
    .dataTables_wrapper .row,
    .dataTables_length,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_paginate,
    .dataTables_processing {
        background-color: #0f1115 !important;
        color: #e6e6e6 !important;
    }

    /* Fix mobile search + select row */
    .dataTables_length label,
    .dataTables_filter label {
        color: #e6e6e6 !important;
    }

    .dataTables_length select,
    .dataTables_filter input {
        background-color: #0f1115 !important;
        color: #ffffff !important;
        border: 1px solid rgba(255,255,255,0.15) !important;
    }

    /* Fix hidden spacer div under table */
    .dataTables_wrapper > div {
        background-color: #0f1115 !important;
    }

    /* Fix pagination white strip */
    .dataTables_paginate span,
    .dataTables_paginate a {
        background-color: #0f1115 !important;
        color: #ffffff !important;
    }

    /* Fix Next / Previous buttons */
    .paginate_button {
        background: rgba(255,255,255,0.06) !important;
        color: #ffffff !important;
        border-radius: 8px;
    }

    .paginate_button.current {
        background: #00e0ff !important;
        color: #000 !important;
    }

    /* Fix bottom white padding */
    .dataTables_wrapper::after {
        content: none !important;
    }
}

/* ================================
   ABSOLUTE MOBILE WHITE-KILL FIX
   ================================ */
@media (max-width: 991px) {

    /* Bootstrap rows injected by DataTables */
    .dataTables_wrapper .row,
    .dataTables_wrapper .row > div,
    .dataTables_wrapper .col-sm-12,
    .dataTables_wrapper .col-sm-6,
    .dataTables_wrapper .col-md-6 {
        background: #0f1115 !important;
        background-color: #0f1115 !important;
    }

    /* Remove Bootstrap gutter white bleed */
    .dataTables_wrapper .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .dataTables_wrapper .row > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Kill any remaining white spacer */
    .dataTables_wrapper > .row:not(:first-child):not(:last-child) {
        background: #0f1115 !important;
    }

    /* Safety net: ANY white inside wrapper */
    .dataTables_wrapper * {
        background-color: transparent;
    }

    /* Re-apply dark backgrounds where needed */
    .dataTables_length,
    .dataTables_filter,
    .dataTables_paginate,
    .dataTables_info {
        background-color: #0f1115 !important;
    }
}

/* ================================
   FINAL WHITE CORNER CLIP FIX
   ================================ */

/* Force dark background on all card wrappers */
.card,
.card-body,
.card-header,
.table-responsive,
.dataTables_wrapper {
    background-color: #0f1115 !important;
}

/* Prevent rounded elements from leaking white */
.card,
.table-responsive,
.dataTables_wrapper {
    overflow: hidden !important;
}

/* Kill any leftover pseudo-elements */
.card::before,
.card::after,
.table-responsive::before,
.table-responsive::after,
.dataTables_wrapper::before,
.dataTables_wrapper::after {
    display: none !important;
    content: none !important;
}

/* Safety: body background reinforcement */
html,
body {
    background-color: #0f1115 !important;
}

/* ================================
   SCROLL RESTORE FIX (MOBILE SAFE)
   ================================ */

/* Allow horizontal scroll for tables */
.table-responsive {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
}

/* Allow DataTables to scroll */
.dataTables_wrapper {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

/* Cards should NOT block scroll */
.card {
    overflow: visible !important;
}

/* Prevent page lock */
html,
body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* ================================
   FINAL FIX – HISTORY TEXT VISIBILITY
   ================================ */

/* Force ALL history table text visible */
.history table,
.history table * {
    color: #e6e6e6 !important;
    opacity: 1 !important;
}

/* ID / hash column (often faded by DataTables) */
.history table td:first-child {
    color: #9aa4b2 !important;
}

/* Game name column */
.history table td:nth-child(2) {
    color: #ffffff !important;
    font-weight: 500;
}

/* Key column (green but readable) */
.history table td:nth-child(3) {
    color: #25d366 !important;
    font-weight: 600;
}

/* Duration column */
.history table td:nth-child(4) {
    color: #ffffff !important;
}

/* Devices column (blue highlight) */
.history table td:nth-child(5) {
    color: #4da3ff !important;
    font-weight: 500;
}

/* Fix DataTables mobile “ghost text” */
.history .dtr-data,
.history .dtr-title {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Prevent auto dimming on small screens */
@media (max-width: 768px) {
    .history table td {
        opacity: 1 !important;
        filter: none !important;
    }
}

/* ================================
   HARD FIX – MOBILE DATATABLE CAMOUFLAGE
   ================================ */

/* Force DataTables responsive text */
table.dataTable.dtr-inline.collapsed > tbody > tr > td,
table.dataTable.dtr-inline.collapsed > tbody > tr > th {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Fix hidden responsive rows */
table.dataTable tbody tr.child,
table.dataTable tbody tr.child td {
    background: #11151f !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Fix DataTables generated labels */
table.dataTable tbody tr.child span.dtr-title {
    color: #9aa4b2 !important;
    font-weight: 500;
}

/* Fix DataTables generated values */
table.dataTable tbody tr.child span.dtr-data {
    color: #ffffff !important;
    font-weight: 500;
}

/* History table – absolute override */
.history table td,
.history table th,
.history table span {
    color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Remove any remaining dimming */
.history table tr {
    opacity: 1 !important;
}

/* Mobile-specific reinforcement */
@media (max-width: 768px) {
    .history table,
    .history table * {
        color: #ffffff !important;
        opacity: 1 !important;
        filter: none !important;
    }
}

/* ================================
   ADDITIONAL ANIMATIONS & EFFECTS
   ================================ */

/* Badge animations */
.badge {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.5s ease-out;
}

.badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge.text-dark {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e6e6e6 !important;
}

.badge.text-primary {
    background: rgba(0, 224, 255, 0.2) !important;
    color: #00e0ff !important;
}

.badge.text-success {
    background: rgba(37, 211, 102, 0.2) !important;
    color: #25d366 !important;
}

/* List group items */
.list-group {
    background: transparent;
    border-radius: 12px;
}

.list-group-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
}

.list-group-item:nth-child(1) { animation-delay: 0.1s; }
.list-group-item:nth-child(2) { animation-delay: 0.2s; }
.list-group-item:nth-child(3) { animation-delay: 0.3s; }
.list-group-item:nth-child(4) { animation-delay: 0.4s; }

.list-group-item:hover {
    background: rgba(0, 224, 255, 0.12) !important;
    transform: translateX(5px);
    border-left: 3px solid #00e0ff;
    color: #ffffff !important;
}

.list-group-item-action:hover {
    color: #00e0ff !important;
}

.list-group-item-action {
    cursor: pointer;
}

.list-group-flush .list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-flush .list-group-item:first-child {
    border-top: none;
}

.list-group-flush .list-group-item:last-child {
    border-bottom: none;
}

/* After card fade in */
.after-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(0, 224, 255, 0.3);
    border-top-color: #00e0ff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Page transitions */
.page-transition {
    animation: fadeIn 0.4s ease-out;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus visible improvements */
*:focus-visible {
    outline: 2px solid #00e0ff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input group animations */
.input-group {
    transition: all 0.3s;
}

.input-group:focus-within {
    transform: translateY(-2px);
}

.input-group:focus-within .input-group-text {
    border-color: #00e0ff;
    color: #00e0ff;
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
}

/* Toggle password button */
.toggle-password {
    transition: all 0.3s;
}

.toggle-password:hover {
    background: rgba(0, 224, 255, 0.1) !important;
    border-color: #00e0ff !important;
    color: #00e0ff !important;
    transform: scale(1.1);
}

/* Expiration timer animation */
#exp {
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 224, 255, 0.8), 0 0 40px rgba(0, 224, 255, 0.4);
}

/* Card body content stagger */
.card-body > * {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.card-body > *:nth-child(1) { animation-delay: 0.1s; }
.card-body > *:nth-child(2) { animation-delay: 0.2s; }
.card-body > *:nth-child(3) { animation-delay: 0.3s; }
.card-body > *:nth-child(4) { animation-delay: 0.4s; }
.card-body > *:nth-child(5) { animation-delay: 0.5s; }

/* Navbar toggler animation */
.navbar-toggler {
    transition: all 0.3s;
}

.navbar-toggler:hover {
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.5);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 224, 255, 0.25);
}

/* Footer animation */
footer {
    animation: fadeIn 0.8s ease-out 0.3s both;
}

/* DataTables processing overlay */
.dataTables_processing {
    background: rgba(15, 17, 21, 0.95) !important;
    border-radius: 12px;
    color: #00e0ff !important;
    border: 1px solid rgba(0, 224, 255, 0.3) !important;
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.3) !important;
}

/* Tooltip enhancements */
.tooltip {
    animation: fadeIn 0.3s ease-out;
}

.tooltip-inner {
    background: rgba(0, 224, 255, 0.95) !important;
    color: #000 !important;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 224, 255, 0.4);
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background: rgba(0, 224, 255, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(0, 224, 255, 0.3);
    color: #fff;
}