:root {
    --pink: #e91e63;
    --pink-dark: #c2185b;
    --pink-light: #fce4ec;
    --pink-soft: #fff0f6;
    --green: #22c55e;
    --green-dark: #16a34a;
    --text: #1a1a1a;
    --text-sub: #888888;
    --border: #f0f0f0;
    --white: #ffffff;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --amber: #f59e0b;
    --red: #ef4444;
}

*, html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--pink);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--pink-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}

.main-content {
    min-height: calc(100vh - 140px);
    padding: 20px 0;
}

.site-header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.header-inner {
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--pink), #ff4d94);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--pink-soft);
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--pink);
    color: var(--white);
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    z-index: 99;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    font-weight: 600;
    border-radius: 8px;
}

.mobile-nav-link:hover {
    background: var(--pink-soft);
    color: var(--pink);
}

.site-footer {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-sub);
    font-size: 0.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #ff4d94, var(--pink));
    color: var(--white);
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--pink);
    border: 2px solid var(--pink);
}

.btn-outline:hover {
    background: var(--pink-soft);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    background: var(--border);
    color: var(--text-sub);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: var(--white);
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    color: var(--white);
}

.hero-badges {
    margin-bottom: 12px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--pink-soft);
    color: var(--pink);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 8px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--pink), #ff4d94);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-sub);
    font-size: 1rem;
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.platform-section {
    margin-top: 24px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: var(--pink-soft);
    border: 2px solid var(--pink-light);
    border-radius: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.platform-card:hover {
    border-color: var(--pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.15);
}

.platform-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
}

.platform-icon-placeholder {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pink);
    color: white;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.platform-name {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text);
}

.platform-cta {
    font-size: 0.85rem;
    color: var(--pink);
    font-weight: 600;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--pink-soft);
    color: var(--pink);
    transition: all 0.2s ease;
}

.back-link:hover {
    background: var(--pink);
    color: white;
}

.page-platform-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.page-title-group {
    flex: 1;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 800;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-sub);
}

.category-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pink);
    margin: 20px 0 12px;
    letter-spacing: 0.5px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--pink-soft);
    border: 2px solid var(--pink-light);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.service-row:hover {
    border-color: var(--pink);
}

.service-info {
    flex: 1;
}

.service-name {
    font-weight: 800;
    font-size: 1rem;
    color: #1a1a1a;
}

a.service-row {
    color: #1a1a1a;
    text-decoration: none;
}

a.service-row .service-name {
    color: #1a1a1a;
}

a.service-row:hover .service-name {
    color: #1a1a1a;
}

/* White text only when inside the gradient service card (order detail page) */
.service-card .service-name {
    color: #ffffff;
}

.service-price {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff4d94, var(--pink));
    color: white;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-sub);
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state p {
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-paid, .badge-status.badge-completed {
    background: #dcfce7;
    color: #166534;
}

.badge-unpaid {
    background: #fef3c7;
    color: #92400e;
}

.badge-refunded {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-processing, .badge-status.badge-in_progress {
    background: #dbeafe;
    color: #1e40af;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-cancelled, .badge-failed, .badge-status.badge-cancelled, .badge-status.badge-failed {
    background: #fee2e2;
    color: #991b1b;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    font-weight: 900;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--pink), #ff4d94);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-sub);
}

.sidebar-nav {
    padding: 16px 12px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-sub);
    letter-spacing: 0.5px;
    padding: 8px 12px;
}

.nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--pink-soft);
    color: var(--pink);
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: #f9fafb;
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}

.admin-page-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.admin-content {
    padding: 24px;
}

.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.admin-overlay.show {
    display: block;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
}

.admin-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.admin-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.admin-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.admin-card-body {
    padding: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-sub);
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: #f9fafb;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-green .stat-icon { background: #dcfce7; color: #16a34a; }
.stat-blue .stat-icon { background: #dbeafe; color: #2563eb; }
.stat-pink .stat-icon { background: var(--pink-soft); color: var(--pink); }
.stat-purple .stat-icon { background: #ede9fe; color: #7c3aed; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-sub);
}

.admin-form .form-group {
    margin-bottom: 16px;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 600;
    transition: border-color 0.2s;
    background: var(--white);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--pink);
}

.form-color {
    width: 60px;
    height: 44px;
    padding: 4px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--pink);
}

.filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-form .form-input {
    flex: 1;
}

.filter-form .form-select {
    width: auto;
}

.table-responsive {
    overflow-x: auto;
}

.font-mono {
    font-family: 'Courier New', monospace;
}

.text-muted {
    color: var(--text-sub);
}

.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

.action-btns {
    display: flex;
    gap: 8px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: var(--border);
    cursor: pointer;
    color: var(--text-sub);
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--pink-soft);
    color: var(--pink);
}

.btn-icon.btn-danger:hover {
    background: #fee2e2;
    color: #ef4444;
}

.link-cell {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
    color: var(--text-sub);
}

.revenue-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.revenue-row:last-child {
    border-bottom: none;
}

.revenue-platform {
    font-weight: 600;
}

.revenue-amount {
    font-weight: 700;
    color: var(--green);
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    
    .hamburger-btn {
        display: block;
    }
    
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: block;
    }
    
    .admin-hamburger {
        display: block;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-two-col {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-form .form-input,
    .filter-form .form-select {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 12px;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}