/* ============================================
   DIGITAL STORE - MAIN STYLESHEET
   Fast, modern, fully responsive
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-primary: 0 4px 20px rgba(99,102,241,0.35);
    --transition: all 0.3s ease;
    --container: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: 16px;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99,102,241,0.45);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 14px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}

.logo-icon {
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* ---------- Sections ---------- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--gray);
    font-size: 17px;
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- Products Grid ---------- */
.products-section {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.product-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.product-icon.large {
    width: 64px;
    height: 64px;
    font-size: 32px;
    border-radius: 16px;
}

.product-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-tagline {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 16px;
    flex: 1;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.product-price-row.detail {
    margin-bottom: 24px;
}

.product-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.product-old-price {
    font-size: 18px;
    color: var(--gray-light);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--success);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* ---------- Why Us ---------- */
.why-section {
    padding: 80px 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.why-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.why-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.why-card p {
    color: var(--gray);
    font-size: 14px;
}

/* ---------- Product Detail ---------- */
.product-detail-section {
    padding: 48px 0 80px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 32px;
}

.breadcrumb a {
    color: var(--primary);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 48px;
}

.product-detail-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 400px;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.product-description {
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.7;
}

.license-box,
.delivery-box {
    background: var(--light);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary);
}

.license-box h3,
.delivery-box h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.license-box p,
.delivery-box p {
    font-size: 14px;
    color: var(--gray);
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
    margin-top: 16px;
}

/* ---------- Features ---------- */
.features-section {
    margin-bottom: 48px;
}

.features-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.feature-check {
    width: 28px;
    height: 28px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- Other Products ---------- */
.other-products h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
}

/* ---------- Checkout ---------- */
.checkout-section {
    padding: 48px 0 80px;
}

.checkout-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    align-items: start;
}

.order-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

.order-summary h2,
.payment-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.order-item {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.order-item-info p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.order-item-price {
    font-weight: 700;
    color: var(--primary);
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 16px;
}

.total-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.order-note {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.payment-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 16px;
}

.payment-tab {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    color: var(--gray);
    background: var(--light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-tab:hover {
    color: var(--primary);
}

.payment-tab.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.tab-icon {
    font-size: 20px;
}

.payment-panel {
    display: none;
}

.payment-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--light);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.card-element {
    padding: 14px 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    background: var(--light);
    transition: var(--transition);
}

.card-element:focus-within {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.card-errors {
    color: var(--danger);
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-spinner::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Status Pages ---------- */
.status-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.status-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
}

.success-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.cancel-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.status-card h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.status-message {
    color: var(--gray);
    margin-bottom: 32px;
}

.status-product {
    display: flex;
    gap: 16px;
    background: var(--light);
    border-radius: var(--radius);
    padding: 16px;
    text-align: left;
    margin-bottom: 24px;
}

.status-product-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.status-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.status-product-info p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.status-price {
    font-weight: 700;
    color: var(--primary);
}

.status-details {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.status-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.status-detail-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.status-detail-item span {
    color: var(--gray);
}

.status-detail-item strong {
    font-weight: 600;
}

.transaction-id {
    font-size: 12px;
    word-break: break-all;
    max-width: 200px;
    text-align: right;
}

.status-completed {
    color: var(--success);
}

.stripe-details {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 12px;
    box-shadow: var(--shadow-sm);
}

.download-box {
    background: rgba(99, 102, 241, 0.05);
    border: 2px dashed var(--primary-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.download-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-box p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 16px;
}

.download-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 28px;
}

.file-info strong {
    display: block;
    font-size: 14px;
}

.file-info span {
    font-size: 12px;
    color: var(--gray);
}

.status-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cancel-info {
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--warning);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 64px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo-icon {
    font-size: 24px;
}

.footer-brand span {
    font-size: 20px;
    font-weight: 800;
}

.footer-brand p {
    color: var(--gray-light);
    font-size: 14px;
    margin-top: 12px;
    max-width: 280px;
}

.footer-links h4,
.footer-payments h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--gray-light);
    font-size: 14px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    color: var(--gray-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 42px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .product-detail-image {
        height: 300px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .nav {
        display: none;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 22px;
    }

    .products-section,
    .why-section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-section {
        padding: 32px 0 60px;
    }

    .product-detail {
        padding: 16px;
        gap: 24px;
    }

    .product-detail-image {
        height: 240px;
    }

    .product-detail-info h1 {
        font-size: 24px;
    }

    .checkout-section {
        padding: 32px 0 60px;
    }

    .checkout-title {
        font-size: 28px;
    }

    .payment-tabs {
        flex-direction: column;
    }

    .payment-tab {
        width: 100%;
    }

    .status-card {
        padding: 32px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .status-actions {
        flex-direction: column;
    }

    .status-actions .btn {
        width: 100%;
    }

    .download-file {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .file-info {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .product-image {
        height: 180px;
    }

    .product-body {
        padding: 20px;
    }

    .product-price {
        font-size: 24px;
    }

    .order-summary,
    .payment-section {
        padding: 24px;
    }

    .status-product {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .status-detail-item {
        flex-direction: column;
        gap: 4px;
    }

    .transaction-id {
        max-width: 100%;
        text-align: left;
    }
}

/* ============================================
   PROFESSIONAL CHECKOUT PAGE
   Clean, minimal, trust-building design
   ============================================ */

/* ---------- Checkout Layout ---------- */
.checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    font-family: 'DM Sans', system-ui, sans-serif;
    background: #ffffff;
    color: #0f172a;
}

/* ---------- Summary Panel (Left) ---------- */
.summary {
    background: #f8fafc;
    padding: 48px 48px 40px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
}

.summary-inner {
    max-width: 380px;
    margin-left: auto;
    width: 100%;
    padding-top: 10vh;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #64748b;
    transition: transform 0.2s ease;
    text-decoration: none;
    margin-right: 2px;
    flex-shrink: 0;
}

.brand:hover .back-arrow {
    transform: translateX(-4px);
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    letter-spacing: -0.5px;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.brand-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.product-name {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.1px;
    margin-bottom: 12px;
    color: #64748b;
}

.price {
    margin-bottom: 16px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
}

.price-currency {
    font-size: 20px;
    font-weight: 600;
    color: #64748b;
    margin-left: 6px;
    vertical-align: super;
}

.summary-footer {
    margin-top: auto;
    padding-top: 24px;
}

.pci-badge {
    height: 20px;
    width: auto;
    opacity: 0.85;
}

/* ---------- Payment Panel (Right) ---------- */
.payment {
    background: #ffffff;
    padding: 48px 48px 40px;
    overflow-y: auto;
}

.payment-inner {
    max-width: 380px;
    width: 100%;
    padding-top: 10vh;
}

.payment h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.payment-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 28px;
}

/* ---------- Checkout Form ---------- */
.checkout-form {
    margin-top: 0;
}

.checkout-form.hidden {
    display: none !important;
}

.checkout-form.is-disabled {
    pointer-events: none;
    opacity: 0.65;
}

#payment-element {
    margin-bottom: 8px;
}

.payment-message {
    font-size: 13px;
    color: #ef4444;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: none;
}

.payment-message.visible {
    display: block;
}

/* ---------- Pay Button ---------- */
.pay-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.1px;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.pay-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pay-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pay-btn .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: hpp-spin 0.6s linear infinite;
    margin: 0 auto;
}

.pay-btn.loading .btn-text {
    visibility: hidden;
}

.pay-btn.loading .spinner {
    display: block;
    position: absolute;
    inset: 0;
    margin: auto;
}

@keyframes hpp-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Form Overlay ---------- */
.form-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    z-index: 90;
    backdrop-filter: blur(2px);
}

.form-overlay.visible {
    display: flex;
}

.form-overlay-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: hpp-spin 0.6s linear infinite;
}

/* ---------- Success Overlay ---------- */
.success-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 100;
    padding: 24px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.success-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.success-overlay-content {
    max-width: 420px;
    transform: translateY(8px);
    transition: transform 0.6s ease;
}

.success-overlay.visible .success-overlay-content {
    transform: translateY(0);
}

.success-overlay-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
}

.success-overlay-icon svg {
    width: 28px;
    height: 28px;
}

.success-overlay-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.2px;
    margin-bottom: 16px;
    color: #0f172a;
}

.success-overlay-subtext {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.success-overlay-fallback {
    display: none;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.success-overlay-fallback.visible {
    display: block;
}

.success-overlay-fallback a {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.success-overlay-fallback a:hover {
    opacity: 0.85;
}

/* ---------- Checkout Responsive ---------- */
@media (max-width: 720px) {
    .checkout {
        grid-template-columns: 1fr;
    }

    .summary {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 28px 20px 20px;
    }

    .summary-inner,
    .payment-inner {
        max-width: none;
        padding-top: 0;
    }

    .summary-inner {
        flex: none;
    }

    .summary-footer {
        display: none;
    }

    .payment {
        padding: 28px 20px 24px;
    }

    .price-amount {
        font-size: 40px;
    }

    .brand {
        margin-bottom: 24px;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
