/* iMassBox - Dark Red Premium Theme */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --red-primary: #c41e3a;
    --red-dark: #8b0000;
    --red-glow: #ff1744;
    --red-gradient: linear-gradient(135deg, #8b0000 0%, #c41e3a 50%, #ff1744 100%);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border-color: #2a2a2a;
    --success: #00c853;
    --warning: #ffab00;
    --danger: #ff1744;
    --radius: 12px;
    --shadow-glow: 0 0 30px rgba(196, 30, 58, 0.3);
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--red-primary) var(--bg-secondary);
}

/* Themed Scrollbar (WebKit / Chrome / Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--red-gradient);
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a30000 0%, #e01e3a 50%, #ff2e57 100%);
    background-clip: padding-box;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-corner {
    background: var(--bg-secondary);
}

/* Themed Text Selection */
::selection {
    background: var(--red-primary);
    color: #ffffff;
}

::-moz-selection {
    background: var(--red-primary);
    color: #ffffff;
}

/* Themed Cursor */
body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8-6 1.5L10 19 5 3z' fill='%23ff1744' stroke='%230a0a0a' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto;
}

a,
button,
.btn,
.tab-btn,
.faq-question,
select,
[role="button"],
input[type="submit"],
input[type="checkbox"],
input[type="radio"],
label {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24'%3E%3Cpath d='M9 2l6 8-3.2.6L13.5 16l-2.4 1-1.7-5.3L7 14 9 2z' fill='%23ff1744' stroke='%23ffffff' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, pointer;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Main content grows to push footer to the bottom on short pages */
body > main {
    flex: 1 0 auto;
}

body > .site-footer {
    flex-shrink: 0;
    margin-top: 0;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at 20% 50%, rgba(139, 0, 0, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(196, 30, 58, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(255, 23, 68, 0.08) 0%, transparent 50%),
                var(--bg-primary);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--red-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.site-header .header-inner {
    position: relative;
}

.site-header .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 20px 0 24px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.header-brand {
    order: 1;
    flex-shrink: 0;
    margin-right: auto;
}

.header-nav {
    order: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    transition: var(--transition);
}

.logo-icon {
    width: 46px;
    height: 46px;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 10px rgba(255, 23, 68, 0.45));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.logo:hover .logo-icon {
    transform: rotate(-6deg) scale(1.08);
    filter: drop-shadow(0 4px 16px rgba(255, 23, 68, 0.7));
}

.logo-text {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: baseline;
    position: relative;
}

/* "i" and "Box" white, "Mass" red gradient */
.logo-lead,
.logo-tail {
    color: var(--text-primary);
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.12);
}

.logo-accent {
    background: linear-gradient(135deg, #ff1744 0%, #ff5e7a 50%, #c41e3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 1px;
    position: relative;
}

/* subtle animated sheen across the wordmark */
.logo-text::after {
    content: "";
    position: absolute;
    left: -1px;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--red-gradient);
    transition: width 0.35s ease;
}

.logo:hover .logo-text::after {
    width: 100%;
}

.logo-center {
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--red-glow);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--red-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-outline:hover {
    background: rgba(196, 30, 58, 0.1);
    box-shadow: var(--shadow-glow);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 .highlight {
    background: var(--red-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(196, 30, 58, 0.5);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.card-glow {
    position: relative;
    overflow: hidden;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red-gradient);
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Section */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Tool Cards */
.tool-card {
    text-align: center;
    padding: 40px 30px;
}

.tool-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(196, 30, 58, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--red-glow);
}

.tool-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Pricing */
.pricing-card {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
}

/* Keep the top gradient bar but never clip the "Popular" badge */
.pricing-card.card-glow {
    overflow: visible;
}

.pricing-card.card-glow::before {
    border-radius: var(--radius) var(--radius) 0 0;
}

.pricing-card.featured {
    border-color: var(--red-primary);
    box-shadow: 0 0 40px rgba(196, 30, 58, 0.25);
    z-index: 1;
}

@media (min-width: 769px) {
    .pricing-card.featured {
        transform: scale(1.05);
    }
    .pricing-card.featured:hover {
        transform: scale(1.05) translateY(-3px);
    }
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red-gradient);
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(255, 23, 68, 0.5);
    z-index: 2;
}

/* Push the CTA button to the bottom so all cards line up */
.pricing-card .btn {
    margin-top: auto;
}

.pricing-type {
    font-size: 0.85rem;
    color: var(--red-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.pricing-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-limit {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    stroke: var(--success);
    flex-shrink: 0;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 20px 0;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    stroke: var(--red-glow);
    transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-secondary);
}

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

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.limit-bar {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.limit-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    position: relative;
    height: 100%;
    background: var(--red-gradient);
    border-radius: 4px;
    transition: width 0.5s ease;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(255, 23, 68, 0.6);
    animation: progressGlow 1.8s ease-in-out infinite;
}

/* Moving diagonal stripes */
.progress-fill::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.22) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0.22) 75%,
        transparent 75%,
        transparent
    );
    background-size: 22px 22px;
    animation: progressStripes 1s linear infinite;
}

/* Sweeping shine highlight */
.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.55),
        transparent
    );
    transform: skewX(-20deg);
    animation: progressShine 1.8s ease-in-out infinite;
}

@keyframes progressStripes {
    from { background-position: 0 0; }
    to { background-position: 22px 0; }
}

@keyframes progressShine {
    0% { left: -80px; }
    60%, 100% { left: 100%; }
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 23, 68, 0.45); }
    50% { box-shadow: 0 0 18px rgba(255, 23, 68, 0.8); }
}

/* Freeze the animation once a job/payment is complete */
.progress-fill.done {
    animation: none;
}

.progress-fill.done::before,
.progress-fill.done::after {
    display: none;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--red-glow);
    border-bottom-color: var(--red-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background: rgba(0, 200, 83, 0.15); color: var(--success); }
.badge-warning { background: rgba(255, 171, 0, 0.15); color: var(--warning); }
.badge-danger { background: rgba(255, 23, 68, 0.15); color: var(--danger); }
.badge-info { background: rgba(196, 30, 58, 0.15); color: var(--red-glow); }

/* Job Status Panel */
.job-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-top: 25px;
    display: none;
}

.job-panel.active {
    display: block;
}

.job-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.job-stat {
    text-align: center;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 8px;
}

.job-stat .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red-glow);
}

.job-stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-brand .logo {
    margin-bottom: 0;
}

.footer-links h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--red-glow);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success { background: rgba(0, 200, 83, 0.1); border: 1px solid var(--success); color: var(--success); }
.alert-error { background: rgba(255, 23, 68, 0.1); border: 1px solid var(--danger); color: var(--danger); }
.alert-info { background: rgba(196, 30, 58, 0.1); border: 1px solid var(--red-primary); color: var(--red-glow); }

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .logo {
    padding: 0 20px 20px;
    display: flex;
    font-size: 1.4rem;
}

.admin-sidebar .logo-icon {
    width: 36px;
    height: 36px;
}

.admin-sidebar .logo-text {
    font-size: 1.4rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.admin-nav a:hover, .admin-nav a.active {
    background: rgba(196, 30, 58, 0.1);
    color: var(--red-glow);
}

.admin-nav a svg {
    width: 18px;
    height: 18px;
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--red-glow);
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Payment Page */
.payment-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.qr-placeholder {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    margin: 20px 0;
}

.btc-address {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    word-break: break-all;
    margin: 15px 0;
    border: 1px solid var(--border-color);
}

.access-key-display {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--red-glow);
    border: 2px solid var(--red-primary);
    margin: 20px 0;
    word-break: break-all;
}

/* ===== Payment Invoice UI ===== */
.pay-card {
    text-align: center;
}

.pay-head {
    margin-bottom: 20px;
}

.pay-coin-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 23, 68, 0.12);
    border: 1px solid rgba(255, 23, 68, 0.35);
    color: var(--red-glow);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.pay-sub {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 0.95rem;
}

.pay-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pay-timer strong {
    color: var(--red-glow);
    font-family: monospace;
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.pay-timer.warning strong {
    color: var(--warning);
}

.pay-timer.expired {
    border-color: var(--danger);
}

.pay-timer.expired strong {
    color: var(--danger);
}

.pay-invoice {
    display: flex;
    gap: 28px;
    align-items: center;
    text-align: left;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 10px;
}

.qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.qr-box {
    width: 190px;
    height: 190px;
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    border: 3px solid var(--red-primary);
    box-shadow: 0 0 25px rgba(196, 30, 58, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-box img,
.qr-box canvas,
.qr-box svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.qr-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pay-fields {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pay-field label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.pay-field-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
}

.pay-field-row .mono {
    font-family: monospace;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
}

.pay-field-row .mono.address {
    word-break: break-all;
    font-size: 0.82rem;
    line-height: 1.4;
}

.copy-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 23, 68, 0.12);
    border: 1px solid rgba(255, 23, 68, 0.35);
    color: var(--red-glow);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: rgba(255, 23, 68, 0.25);
}

.copy-btn.copied {
    background: rgba(0, 200, 83, 0.15);
    border-color: var(--success);
    color: var(--success);
}

.pay-wallet-btn {
    width: 100%;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .pay-invoice {
        flex-direction: column;
        gap: 20px;
    }
    .pay-fields {
        width: 100%;
    }
}

/* Editor */
.editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.preview-frame {
    background: white;
    color: #333;
    border-radius: 8px;
    padding: 20px;
    min-height: 300px;
    overflow: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .editor-container { grid-template-columns: 1fr; }
    .admin-sidebar { width: 220px; }
    .admin-content { margin-left: 220px; }
}

@media (max-width: 768px) {
    .header-brand {
        margin-right: 0;
    }

    .header-nav {
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 15px);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        z-index: 1001;
    }

    .nav-menu.open { display: flex; }
    .mobile-toggle { display: block; }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .job-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }

    .pricing-card.featured { transform: none; }

    .admin-sidebar {
        position: fixed;
        left: -260px;
        transition: left 0.3s;
        z-index: 1001;
    }

    .admin-sidebar.open { left: 0; }
    .admin-content { margin-left: 0; }

    .hero { padding: 60px 0 40px; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; }
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--red-glow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden { display: none !important; }

.text-center { text-align: center; }
.text-red { color: var(--red-glow); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
