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

:root {
    --primary-color: #0862fd;
    --primary-hover: #0651d9;
    --primary-light: rgba(8, 98, 253, 0.1);
    --secondary-color: #0862fd;
    --secondary-hover: #0651d9;
    --text-color: #111517;
    --text-muted: #595959;
    --bg-color: #ffffff;
    --light-bg: #f7f7f7;
    --blue-bg: #eff5ff;
    --border-color: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --radius-sm: 6px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    --success-color: #1e7e34;
    --success-bg: #e6f9ed;
    --danger-color: #dc3545;
    --danger-bg: #fff5f5;
}

/* Base */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper should grow to fill space */
.gk-page-wrap {
    flex: 1 0 auto;
}

/* Footer stays at bottom */
footer {
    flex-shrink: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

h1::before,
h2::before,
h3::before,
.startitup-title::before {
    background-color: var(--primary-color);
    border-radius: 100%;
    bottom: 0;
    content: "";
    height: 12px;
    margin-right: 12px;
    left: -17px;
    top: 0;
    width: 12px;
    box-sizing: border-box;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.row {
    padding: 5px;
}


/* Layout */
.crm-inner-wrap {
    padding: 20px;
    padding-top: 10px;
}

.page-header {
    border: none !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
}

.page-header #balance {
    margin-left: 15px;
}

.page-header p strong a {
    display: inline-block;
    padding: 0px;
    margin-bottom: 0px;
}

#invoice-country .help-block {
    display: none;
}

/* Sidebar Styling */
.col-md-1 {
    width: 20% !important;
    max-width: 280px;
    /* Cap sidebar width on very large screens */
    padding-right: 30px !important;
}

.col-md-6.col-md-offset-1 {
    width: 75% !important;
    /* Increased from 65% to give more room for tables */
    margin-left: 2% !important;
    /* Reduced margin */
}

@media (max-width: 1552px) {
    .col-md-1 {
        width: 22% !important;
    }

    .col-md-6.col-md-offset-1 {
        width: 76% !important;
        margin-left: 2% !important;
    }
}

.main-logo {
    margin-top: 30px;
}

@media (max-width: 991px) {

    .col-md-1,
    .col-md-offset-1 {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 40px 5px 0px 5px !important
    }

    .col-md-6.col-md-offset-1 {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 10px 5px 0px 5px !important
    }

    .main-logo {
        margin-top: 10px;
    }

}

/* Component Overrides */
.well,
.panel,
.provide-email-card,
.card {
    background: #fff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    padding: 30px !important;
    box-shadow: var(--shadow) !important;
    margin-bottom: 30px;
    transition: var(--transition);
}

.well:hover,
.panel:hover,
.provide-email-card:hover,
.card:hover {
    box-shadow: var(--shadow-lg) !important;
}

/* Buttons */
.btn,
.siu-cta,
input[type="submit"],
button {
    font-family: 'Inter', sans-serif !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    transition: var(--transition) !important;
    box-shadow: none !important;
    border: none !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary,
input[type="submit"],
.button-primary {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-primary:hover,
input[type="submit"]:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 98, 253, 0.3) !important;
}

.btn-primary:active,
input[type="submit"]:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 98, 253, 0.3) !important;
}

.btn-outline {
    background-color: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
}

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

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select,
.form-control {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 16px !important;
    height: auto !important;
    box-shadow: none !important;
    font-size: 15px !important;
    transition: var(--transition) !important;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px var(--primary-light) !important;
    outline: none !important;
}

input::placeholder,
textarea::placeholder {
    color: #999;
    opacity: 1;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

/* Alerts */
.alert {
    border-radius: var(--radius);
    padding: 16px 20px;
    border: none;
    margin-bottom: 25px;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-success {
    background-color: #e6f9ed;
    color: #1e7e34;
    border-left: 4px solid #28a745;
}

.alert-info {
    background-color: #e7f3ff;
    color: #004085;
    border-left: 4px solid #0862fd;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-danger,
form ul.error {
    background-color: #fff5f5 !important;
    color: #c53030 !important;
    border: 1px solid #feb2b2 !important;
    border-left: 4px solid #dc3545 !important;
    list-style: none;
    padding: 16px 20px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

@media (max-width: 1552px) {
    .table-striped {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
        /* Prevent text selection while dragging */
        user-select: none;
    }

    .table-striped:active {
        cursor: grabbing;
    }
}

table th,
table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    font-weight: 600;
    background-color: var(--light-bg);
    color: var(--text-color);
}

table tr:hover {
    background-color: var(--light-bg);
}

/* Footer */
footer.navbar-fixed-bottom {
    position: relative !important;
    background-color: #000 !important;
    color: #969696 !important;
    padding: 60px 0 40px !important;
    margin-top: 80px;
    border: none !important;
    font-size: 13px !important;
}

footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 10px;
    transition: var(--transition);
}

footer a:hover {
    color: #fff !important;
    text-decoration: none;
}

footer .row {
    margin-bottom: 15px;
}

footer .row:first-child {
    font-size: 0;
}

footer .row:first-child span {
    font-size: 13px;
}

footer .row:first-child a {
    font-size: 13px;
}

/* Active page indicator (mobile) */
.mobile-page-title {
    display: none;
    position: fixed;
    top: 20px;
    left: 13px;
    right: 80px;
    z-index: 10000;
    background: var(--bg-color);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .mobile-page-title {
        display: block;
    }

    /* Hide when menu is open */
    .mobile-menu-toggle:checked~.mobile-page-title {
        display: none;
    }
}

/* Burger Menu (Mobile Only) */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10001;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-icon span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Burger animation when checked */
.mobile-menu-toggle:checked+.mobile-menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background-color: var(--primary-color);
}

.mobile-menu-toggle:checked+.mobile-menu-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle:checked+.mobile-menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: var(--primary-color);
}

/* Menu styling */
.page-header {
    margin-top: 20px !important;
}

.page-header a {
    color: var(--text-color);
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    /*padding: 8px 12px;*/
    transition: var(--transition);
}

.page-header a:hover {
    color: var(--primary-color);
    /*background-color: var(--light-bg);
    border-color: var(--border-color);*/
    padding-left: 5px;
    text-decoration: none;
}

.page-header strong a,
.page-header a strong {
    color: var(--primary-color);
    font-weight: 700;
    padding-left: 5px;
}

/* User Profile Header */
.user-profile-header {
    background: #fff;
    padding: 15px 0;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-avatar {
    font-size: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.user-email {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-wallet {
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-top: 5px;
}

.user-wallet .progress {
    height: 6px !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

/* Login link in header */
.btn-login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-login-header:hover {
    background-color: var(--primary-hover);
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 84, 84, 0.2);
}

.menu-separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 10px 0;
}

/* Utility Classes */
.is-premium {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.text-blue {
    color: var(--secondary-color);
}

.text-muted {
    color: var(--text-muted);
}

.bg-blue-light {
    background-color: var(--blue-bg);
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {

    /* Typography */
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }

    h5 {
        font-size: 16px;
    }

    /* Touch-friendly buttons */
    .btn,
    input[type="submit"],
    button {
        width: 100%;
        justify-content: center;
        min-height: 48px !important;
        padding: 14px 24px !important;
        font-size: 16px !important;
        margin-bottom: 15px;
    }

    /* Touch-friendly form inputs */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select,
    .form-control {
        min-height: 48px !important;
        font-size: 16px !important;
        /* Prevents zoom on iOS */
        padding: 14px 16px !important;
    }

    /* Better spacing for mobile */
    .well,
    .panel,
    .provide-email-card,
    .card {
        padding: 20px !important;
        margin-bottom: 20px;
    }

    /* Mobile-friendly tables */
    table {
        font-size: 14px;
    }

    table th,
    table td {
        padding: 10px 12px;
    }

    /* Alerts */
    .alert {
        padding: 14px 16px;
        font-size: 14px;
    }

    /* Footer */
    footer.navbar-fixed-bottom {
        padding: 40px 0 30px !important;
        margin-top: 60px;
        font-size: 12px !important;
    }

    footer a {
        display: block;
        margin: 8px 0;
    }

    /* Menu */
    .page-header a {
        padding: 10px 12px;
    }

    .page-header a:hover {
        padding-left: 12px;
    }

    /* Reduce margins on mobile */
    .gk-page-wrap {
        padding-top: 20px;
    }

    .page-header {
        margin: 0 0 20px 0 !important;
    }

    .col-md-1>a:first-child {
        display: block;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    /* Mobile Menu */
    .mobile-menu-icon {
        display: flex !important;
    }

    .col-md-1 .page-header {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-color);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 80px 20px 20px !important;
        z-index: 10000;
        margin: 0 !important;
    }

    .mobile-menu-toggle:checked~.col-md-1 .page-header {
        left: 0;
    }

    /* Mobile menu items styling */
    .col-md-1 .page-header a {
        display: block !important;
        padding: 12px 16px !important;
        color: var(--text-color) !important;
        font-size: 16px !important;
        margin-bottom: 8px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .col-md-1 .page-header a:hover {
        background-color: var(--light-bg) !important;
        padding-left: 16px !important;
    }

    .col-md-1 .page-header strong,
    .col-md-1 .page-header b {
        display: inline !important;
        color: var(--primary-color) !important;
    }

    .col-md-1 .page-header br {
        display: none;
    }

    /* User info section in mobile menu */
    .col-md-1 .page-header .user-profile-header {
        background: var(--light-bg);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        padding: 16px;
        margin-bottom: 20px;
    }

    .col-md-1 .page-header .user-profile-header b,
    .col-md-1 .page-header .user-profile-header .user-email {
        color: var(--primary-color) !important;
    }

    .col-md-1 .page-header .user-wallet {
        background: #fff !important;
        margin-top: 10px;
    }

    .col-md-1 .page-header .progress {
        margin-top: 8px !important;
        height: 8px !important;
        border-radius: 4px;
        background-color: rgba(0, 0, 0, 0.1);
    }

    .col-md-1 .page-header .progress-bar {
        border-radius: 4px;
    }
}

/* Extra small devices (phones in portrait, less than 576px) */
@media (max-width: 575px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    .well,
    .panel,
    .provide-email-card,
    .card {
        padding: 16px !important;
        border-radius: 6px !important;
        margin: 15px;
    }

    /* Smaller checkboxes on very small screens */
}

/* Landscape mode optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .gk-page-wrap {
        padding-top: 15px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .well,
    .panel,
    .provide-email-card,
    .card {
        padding: 16px !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Touch device optimizations and hover removal */
    .well:hover,
    .panel:hover,
    .provide-email-card:hover,
    .card:hover {
        box-shadow: var(--shadow) !important;
    }

    input:focus,
    textarea:focus,
    select:focus,
    .form-control:focus {
        box-shadow: 0 0 0 3px var(--primary-light) !important;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Social Login Buttons Design */
.remp-login_social-buttons {
    margin: 25px 0;
}

.remp-login_social-buttons__separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.remp-login_social-buttons__separator::before,
.remp-login_social-buttons__separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.remp-login_social-buttons__separator:not(:empty)::before {
    margin-right: .5em;
}

.remp-login_social-buttons__separator:not(:empty)::after {
    margin-left: .5em;
}

.remp-login_social-buttons__separator-text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.remp-login_social-buttons__content {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.remp-login_social-buttons__button {
    flex: 0 0 auto;
}

.social-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border: 1px solid #000;
    flex: 1;
    height: 50px;
    border-radius: 8px;
    min-width: 100px;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #ccc;
}

.social-button__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.google-button svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .remp-login_social-buttons__content {
        gap: 20px;
    }
}

/* Override vendor .btn-social styles for settings page */

.social-sign-in-wrapper {
    padding-left: 15px;
    width: 96%;
}

/* Custom social buttons container */
#custom-social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

#custom-social-buttons .social-sign-in {
    flex: 0 0 auto;
    width: auto !important;
}

#custom-social-buttons .btn-social {
    width: 60px !important;
    max-width: 60px !important;
}

.social-sign-in .btn-social {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: #fff !important;
    border: 1px solid #000 !important;
    height: 50px !important;
    border-radius: 8px !important;
    min-width: 100px !important;
    box-shadow: none !important;
    transition: var(--transition) !important;
    margin-bottom: 10px !important;
}

.social-sign-in .btn-social:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow) !important;
    opacity: 1 !important;
}

.social-sign-in .btn-social .logo {
    width: auto !important;
    padding: 0 !important;
}

.social-sign-in .btn-social .logo img,
.social-sign-in .btn-social .logo svg {
    width: 24px !important;
    height: 24px !important;
    background-color: transparent !important;
    padding: 0 !important;
}

.social-sign-in .btn-social span {
    display: none !important;
}

/* Specific provider colors for icons */
.social-sign-in .btn-social.btn-google .logo svg path {
    fill: currentColor;
}

.social-sign-in .btn-social.btn-apple .logo svg {
    color: #000 !important;
}

.social-sign-in .btn-social.btn-facebook .logo img {
    filter: none !important;
}

.social-sign-in .btn-social.connected,
.social-sign-in .btn-social.connect {
    border-color: var(--text-color) !important;
}

/* Premium Table Redesign */
.table.table-striped {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-top: 20px;
    background: transparent;
    border: none;
}

.table.table-striped thead th {
    background-color: var(--light-bg);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px;
    border-bottom: 2px solid var(--border-color) !important;
    border-top: none;
}

.table.table-striped tbody tr {
    transition: var(--transition);
}

.table.table-striped tbody tr:hover {
    background-color: var(--blue-bg) !important;
}

.table.table-striped tbody td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    border-top: none;
    color: var(--text-color);
    font-size: 15px;
}

.table.table-striped tbody td:first-child {
    font-weight: 700;
}

@media (max-width: 768px) {
    .table.table-striped tbody td:first-child {
        font-size: 22px;
    }
}

/* Labels redesign */
.label {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-right: 6px;
    margin-bottom: 4px;
    border: none;
}

.label-primary {
    background-color: var(--primary-light) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(8, 98, 253, 0.2) !important;
}

.label-success {
    background-color: var(--success-bg) !important;
    color: var(--success-color) !important;
    border: 1px solid rgba(30, 126, 52, 0.2) !important;
}

.label-danger {
    background-color: var(--danger-bg) !important;
    color: var(--danger-color) !important;
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
}

/* Fallback for inline style color:red often used for expiration */
.table td span[style*="color: red"],
.table td span[style*="color:red"],
.label-danger {
    display: inline-block;
    background-color: var(--danger-bg) !important;
    color: var(--danger-color) !important;
    /*padding: 4px 10px !important;*/
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    /*border: 1px solid rgba(220, 53, 69, 0.2) !important;*/
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td span[style*="color: green"],
.table td span[style*="color:green"],
.label-success {
    display: inline-block;
    background-color: var(--success-bg) !important;
    color: var(--success-color) !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border: 1px solid rgba(30, 126, 52, 0.2) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specific cell content styling */
.table td span.label-success {
    margin-left: 8px;
    vertical-align: middle;
}

/* Activation Code Styling */
.table td span[onclick*="copyToClipboard"] {
    display: inline-flex;
    align-items: center;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding: 6px 12px;
    padding-right: 34px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    cursor: copy !important;
}

.table td span[onclick*="copyToClipboard"]::after {
    content: '\f0c5';
    font-family: 'FontAwesome';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    opacity: 0.6;
    font-weight: 400;
}

.table td span[onclick*="copyToClipboard"]:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    border-style: solid;
    transform: translateY(-1px);
}

.table td span[onclick*="copyToClipboard"]:hover::after {
    opacity: 1;
}

/* Mobile Responsiveness for Table */
@media (max-width: 768px) {
    .table.table-striped {
        margin-top: 0px;
        display: block;
        width: 100%;
        overflow-x: auto;
        /* Fallback for tables without data-labels or very complex ones */
        -webkit-overflow-scrolling: touch;
    }

    .table.table-striped thead {
        display: none;
    }

    .table.table-striped tbody,
    .table.table-striped tr,
    .table.table-striped td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        /* Override hardcoded min-width */
    }

    .table.table-striped tbody tr {
        margin-bottom: 25px;
        background: #fff !important;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 10px 0;
    }

    .table.table-striped tbody td {
        display: flex;
        flex-direction: column;
        /* Better for long text */
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        padding: 12px 20px;
        border-bottom: 1px solid var(--light-bg);
        position: relative;
    }

    .table.table-striped tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 10px;
        color: var(--text-muted);
        letter-spacing: 0.5px;
        margin-bottom: 4px;
        display: block;
    }

    /* If data-label is missing, don't show the margin */
    .table.table-striped tbody td[data-label=""]::before,
    .table.table-striped tbody td:not([data-label])::before {
        display: none;
    }

    .table.table-striped tbody td p {
        min-width: 0 !important;
        /* Killer for hardcoded widths */
        padding: 5px 0 !important;
        margin: 0;
        width: 100%;
    }

    .table.table-striped tbody td:last-child {
        border-bottom: none;
    }
}