/* ========================================
   Etsy Giveaway SaaS Platform - Styles
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --saas-bg: #0a0e1a;
    --saas-sidebar: #0d1225;
    --saas-card: #111832;
    --saas-card-hover: #161e3d;
    --saas-border: rgba(99, 102, 241, 0.12);
    --saas-primary: #6366f1;
    --saas-primary-light: #818cf8;
    --saas-primary-dark: #4f46e5;
    --saas-accent: #06b6d4;
    --saas-accent-light: #22d3ee;
    --saas-success: #10b981;
    --saas-warning: #f59e0b;
    --saas-danger: #ef4444;
    --saas-text: #e2e8f0;
    --saas-text-muted: #94a3b8;
    --saas-text-dim: #64748b;
    --saas-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --saas-gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --saas-gradient-success: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --saas-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --saas-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --saas-radius: 16px;
    --saas-radius-sm: 10px;
    --saas-radius-xs: 6px;
    --sidebar-width: 270px;
    --topbar-height: 70px;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.saas-body {
    font-family: 'Inter', sans-serif;
    background: var(--saas-bg);
    color: var(--saas-text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ========================================
   LOGIN PAGE
   ======================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--saas-bg);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    border-radius: 50%;
    animation: floatOrb 8s ease-in-out infinite;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
    border-radius: 50%;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.login-logo h1 span {
    background: var(--saas-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-logo p {
    color: var(--saas-text-muted);
    margin-top: 8px;
    font-size: 0.95rem;
}

.login-card {
    background: var(--saas-card);
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius);
    padding: 40px;
    box-shadow: var(--saas-shadow-lg);
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--saas-radius-sm);
    padding: 4px;
}

.login-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--saas-text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.login-tab.active {
    background: var(--saas-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.login-tab:hover:not(.active) {
    color: var(--saas-text);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--saas-text);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-sm);
    color: var(--saas-text);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--saas-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.form-control::placeholder {
    color: var(--saas-text-dim);
}

.btn-saas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--saas-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-saas-primary {
    background: var(--saas-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-saas-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.btn-saas-full {
    width: 100%;
}

.btn-saas-outline {
    background: transparent;
    color: var(--saas-primary-light);
    border: 1px solid var(--saas-border);
}

.btn-saas-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--saas-primary);
}

.btn-saas-success {
    background: var(--saas-gradient-success);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-saas-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.btn-saas-danger {
    background: var(--saas-danger);
    color: #fff;
}

.btn-saas-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ========================================
   LAYOUT: Sidebar + Main
   ======================================== */
.saas-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.saas-sidebar {
    width: var(--sidebar-width);
    background: var(--saas-sidebar);
    border-right: 1px solid var(--saas-border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--saas-border);
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo span {
    background: var(--saas-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--saas-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-text-fill-color: white;
    font-size: 1rem;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
}

.sidebar-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--saas-text-dim);
    padding: 8px 16px;
    margin-top: 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    margin: 2px 0;
    border-radius: var(--saas-radius-sm);
    color: var(--saas-text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.25s ease;
    cursor: pointer;
}

.sidebar-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
}

.sidebar-link:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--saas-text);
}

.sidebar-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--saas-primary-light);
    font-weight: 600;
}

.sidebar-link.active i {
    color: var(--saas-primary-light);
}

.sidebar-link .badge {
    margin-left: auto;
    background: var(--saas-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--saas-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--saas-radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--saas-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--saas-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 0.75rem;
    color: var(--saas-text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content */
.saas-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.saas-topbar {
    height: var(--topbar-height);
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--saas-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.topbar-title span {
    color: var(--saas-text-muted);
    font-weight: 400;
    font-size: 0.9rem;
    margin-left: 8px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--saas-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--saas-border);
    color: var(--saas-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
}

.topbar-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--saas-primary-light);
    border-color: var(--saas-primary);
}

.topbar-btn .notif-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--saas-danger);
    border-radius: 50%;
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--saas-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--saas-border);
    color: var(--saas-text);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Content Area */
.saas-content {
    flex: 1;
    padding: 32px;
}

/* ========================================
   DASHBOARD CARDS
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--saas-card);
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.card-primary::before {
    background: var(--saas-gradient);
}

.stat-card.card-success::before {
    background: var(--saas-gradient-success);
}

.stat-card.card-warning::before {
    background: var(--saas-gradient-warm);
}

.stat-card.card-accent::before {
    background: linear-gradient(135deg, #06b6d4, #a855f7);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--saas-shadow);
    border-color: rgba(99, 102, 241, 0.2);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-primary .stat-card-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--saas-primary-light);
}

.card-success .stat-card-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--saas-success);
}

.card-warning .stat-card-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--saas-warning);
}

.card-accent .stat-card-icon {
    background: rgba(6, 182, 212, 0.15);
    color: var(--saas-accent);
}

.stat-card-label {
    font-size: 0.82rem;
    color: var(--saas-text-dim);
    font-weight: 500;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-card-change {
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-card-change.positive {
    color: var(--saas-success);
}

.stat-card-change.negative {
    color: var(--saas-danger);
}

/* ========================================
   SAAS CARD (Generic)
   ======================================== */
.saas-card {
    background: var(--saas-card);
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius);
    padding: 28px;
    transition: all 0.3s ease;
}

.saas-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.saas-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.saas-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

/* ========================================
   GIVEAWAY FORM
   ======================================== */
.giveaway-form-wrapper {
    max-width: 800px;
}

.form-step {
    background: var(--saas-card);
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius);
    padding: 28px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.form-step:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.form-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.form-step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--saas-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.form-step-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.form-step-desc {
    font-size: 0.82rem;
    color: var(--saas-text-dim);
}

.input-with-btn {
    display: flex;
    gap: 12px;
}

.input-with-btn .form-control {
    flex: 1;
}

.input-with-btn .btn-saas {
    white-space: nowrap;
}

/* Product Card */
.product-card {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--saas-radius-sm);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    animation: fadeIn 0.4s ease;
}

.product-card-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--saas-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.product-card-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.product-card-info .product-price {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--saas-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card-info .product-shop {
    font-size: 0.8rem;
    color: var(--saas-text-dim);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Date & Time Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Tags/Keywords Input */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-sm);
    min-height: 50px;
    cursor: text;
    transition: all 0.3s ease;
}

.tags-container:focus-within {
    border-color: var(--saas-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--saas-primary-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.tag .tag-remove {
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tag .tag-remove:hover {
    opacity: 1;
}

.tags-input {
    border: none;
    background: transparent;
    color: var(--saas-text);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    flex: 1;
    min-width: 120px;
    padding: 4px 0;
}

.tags-input::placeholder {
    color: var(--saas-text-dim);
}

/* Price Calculation */
.price-summary {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--saas-radius-sm);
    padding: 24px;
    margin-top: 16px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--saas-text-muted);
}

.price-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.price-row .price-value {
    font-weight: 600;
    color: var(--saas-text);
}

.price-row.total .price-value {
    background: var(--saas-gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
}

/* ========================================
   PAYMENT MODAL
   ======================================== */
.saas-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.saas-modal-overlay.active {
    display: flex;
}

.saas-modal {
    background: var(--saas-card);
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
    animation: modalIn 0.3s ease;
    position: relative;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--saas-border);
    background: transparent;
    color: var(--saas-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1rem;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--saas-danger);
    border-color: var(--saas-danger);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    color: var(--saas-primary-light);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.92rem;
}

.order-summary-item:last-child {
    border-bottom: none;
}

.order-summary-label {
    color: var(--saas-text-dim);
}

.order-summary-value {
    color: var(--saas-text);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.order-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.order-keywords .mini-tag {
    background: rgba(99, 102, 241, 0.12);
    color: var(--saas-primary-light);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
}

.order-total-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--saas-radius-sm);
    padding: 16px 20px;
    margin: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--saas-text);
}

.order-total-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--saas-gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions .btn-saas {
    flex: 1;
}

/* ========================================
   TABLE
   ======================================== */
.saas-table-wrapper {
    overflow-x: auto;
}

.saas-table {
    width: 100%;
    border-collapse: collapse;
}

.saas-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--saas-text-dim);
    border-bottom: 1px solid var(--saas-border);
    white-space: nowrap;
}

.saas-table td {
    padding: 16px;
    font-size: 0.9rem;
    color: var(--saas-text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.saas-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.saas-table .table-product {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--saas-text);
    font-weight: 500;
}

.table-product-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--saas-primary-light);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.12);
    color: var(--saas-success);
}

.status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: var(--saas-warning);
}

.status-completed {
    background: rgba(99, 102, 241, 0.12);
    color: var(--saas-primary-light);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.12);
    color: var(--saas-danger);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-active .status-dot {
    background: var(--saas-success);
}

.status-pending .status-dot {
    background: var(--saas-warning);
}

.status-completed .status-dot {
    background: var(--saas-primary-light);
}

.status-cancelled .status-dot {
    background: var(--saas-danger);
}

/* ========================================
   SUPPORT / TICKET
   ======================================== */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-sm);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ticket-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.04);
}

.ticket-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--saas-text);
    margin-bottom: 4px;
}

.ticket-info p {
    font-size: 0.82rem;
    color: var(--saas-text-dim);
}

.ticket-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.ticket-date {
    font-size: 0.8rem;
    color: var(--saas-text-dim);
}

/* ========================================
   HOW-TO / STEPS
   ======================================== */
.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    max-width: 700px;
}

.step-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    position: relative;
}

.step-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.step-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: var(--saas-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    z-index: 1;
}

.step-connector {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--saas-primary), transparent);
    min-height: 20px;
}

.step-item:last-child .step-connector {
    display: none;
}

.step-content {
    padding-top: 6px;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.92rem;
    color: var(--saas-text-muted);
    line-height: 1.7;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--saas-card);
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    box-shadow: var(--saas-shadow-lg);
    animation: toastIn 0.4s ease;
}

.toast.toast-success {
    border-left: 3px solid var(--saas-success);
}

.toast.toast-error {
    border-left: 3px solid var(--saas-danger);
}

.toast.toast-info {
    border-left: 3px solid var(--saas-primary);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast.toast-success .toast-icon {
    color: var(--saas-success);
}

.toast.toast-error .toast-icon {
    color: var(--saas-danger);
}

.toast.toast-info .toast-icon {
    color: var(--saas-primary-light);
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--saas-text);
}

.toast-close {
    cursor: pointer;
    color: var(--saas-text-dim);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--saas-text);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: var(--saas-text-dim);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--saas-text-muted);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--saas-text-dim);
}

/* ========================================
   SELECT / DROPDOWN CUSTOM
   ======================================== */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select.form-control option {
    background: var(--saas-card);
    color: var(--saas-text);
}

input[type="date"].form-control {
    cursor: pointer;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .saas-sidebar {
        transform: translateX(-100%);
    }

    .saas-sidebar.open {
        transform: translateX(0);
    }

    .saas-main {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .saas-content {
        padding: 20px 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .input-with-btn {
        flex-direction: column;
    }

    .saas-topbar {
        padding: 0 16px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .ticket-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 12px;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .order-summary-item {
        flex-direction: column;
        gap: 6px;
    }

    .order-summary-value {
        text-align: left;
        max-width: 100%;
    }

    .order-keywords {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .topbar-title {
        font-size: 1rem;
    }

    .topbar-title span {
        display: none;
    }

    .stat-card-value {
        font-size: 1.6rem;
    }

    .toast {
        min-width: auto;
        width: calc(100vw - 48px);
    }
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Utility */
.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.gap-12 {
    gap: 12px;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-right {
    text-align: right;
}

.w-full {
    width: 100%;
}

/* Grid helpers */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

/* Image Upload & Review Section */
.image-upload-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.image-upload-label {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--saas-border);
    border-radius: var(--saas-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--saas-text-muted);
}

.image-upload-label:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--saas-primary);
    color: var(--saas-primary-light);
}

.image-upload-label i {
    font-size: 1.5rem;
}

.image-upload-label span {
    font-size: 0.75rem;
    font-weight: 600;
}

.image-preview-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--saas-radius-sm);
    overflow: hidden;
    border: 1px solid var(--saas-border);
}

.image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--saas-danger);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.image-remove-btn:hover {
    transform: scale(1.1);
    background: #ff5f5f;
}

.mt-16 {
    margin-top: 16px;
}