/* ===== Next Purchase Coupons - Frontend Pinguins Red Theme ===== */

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

:root {
    /* Pinguins Colors */
    --npc-primary: #780316;
    --npc-primary-light: #dc2626;
    --npc-accent: #d4a017;
    --npc-success: #5cb85c;
    --npc-warning: #f0ad4e;
    --npc-error: #dc2626;
    
    /* Gradients */
    --npc-gradient-header: linear-gradient(135deg, #780316 0%, #dc2626 100%);
    --npc-gradient-button: linear-gradient(135deg, #780316 0%, #8b0a1f 100%);
    --npc-gradient-success: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
    --npc-gradient-warning: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%);
    --npc-gradient-error: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    
    /* Surfaces */
    --npc-surface: #ffffff;
    --npc-surface-variant: #f8fafc;
    --npc-surface-container: #f1f5f9;
    --npc-outline: #e2e8f0;
    --npc-outline-variant: #cbd5e1;
    
    /* Text colors */
    --npc-on-surface: #1e293b;
    --npc-on-surface-variant: #64748b;
    --npc-on-primary: #ffffff;
    
    /* Shadows */
    --npc-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --npc-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --npc-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --npc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --npc-radius: 12px;
    --npc-radius-lg: 16px;
    --npc-radius-xl: 24px;
    
    --npc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --npc-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base Styles ===== */
.npc-user-coupons {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    font-family: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.npc-user-coupons * {
    box-sizing: border-box;
    font-family: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Header ===== */
.npc-coupons-header {
    background: var(--npc-gradient-header);
    border-radius: var(--npc-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.npc-coupons-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.npc-coupons-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    position: relative;
    z-index: 1;
}

.npc-coupons-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ===== No Coupons State ===== */
.npc-no-coupons {
    background: var(--npc-surface);
    border-radius: var(--npc-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--npc-shadow);
    border: 1px solid var(--npc-outline);
}

.npc-no-coupons-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--npc-gradient-header);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--npc-shadow-lg);
}

.npc-no-coupons-icon .material-symbols-outlined {
    font-size: 2.5rem;
    color: white;
}

.npc-no-coupons h3 {
    color: var(--npc-on-surface);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.npc-no-coupons p {
    color: var(--npc-on-surface-variant);
    font-size: 1rem;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

/* ===== Coupons Grid ===== */
.npc-coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ===== Coupon Card ===== */
.npc-coupon-card {
    background: var(--npc-surface);
    border-radius: var(--npc-radius-lg);
    box-shadow: var(--npc-shadow);
    border: 1px solid var(--npc-outline);
    overflow: hidden;
    transition: var(--npc-transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.npc-coupon-card.npc-coupon-valid {
    border-left: 4px solid #5cb85c;
}

.npc-coupon-card.npc-coupon-invalid {
    border-left: 4px solid #dc2626;
    opacity: 0.7;
}

.npc-coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--npc-shadow-lg);
}

.npc-coupon-card.npc-coupon-valid:hover {
    border-left-color: #4cae4c;
}

/* ===== Coupon Card Header ===== */
.npc-coupon-header {
    background: var(--npc-gradient-header);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    gap: 1rem;
}

.npc-coupon-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.npc-coupon-invalid .npc-coupon-icon {
    background: rgba(255, 255, 255, 0.1);
}

.npc-coupon-icon .material-symbols-outlined {
    font-size: 1.25rem;
    color: white;
}

/* ===== Status Badges ===== */
.npc-status {
    padding: 0.375rem 0.75rem;
    border-radius: var(--npc-radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    white-space: nowrap;
}

.npc-status-valid {
    background: rgba(255, 255, 255, 0.3);
}

.npc-status-used {
    background: rgba(255, 255, 255, 0.2);
}

.npc-status-expired {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== Coupon Content ===== */
.npc-coupon-content {
    padding: 1.5rem;
}

.npc-coupon-code {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--npc-surface-variant);
    border-radius: var(--npc-radius);
    margin-bottom: 1.5rem;
    border: 2px dashed var(--npc-outline);
}

.npc-code-label {
    font-size: 0.875rem;
    color: var(--npc-on-surface-variant);
    font-weight: 500;
}

.npc-code-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--npc-on-surface);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    flex: 1;
    word-break: break-all;
}

.npc-copy-code {
    padding: 0.5rem;
    border: none;
    background: var(--npc-primary);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--npc-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Geologica', sans-serif;
    flex-shrink: 0;
}

.npc-copy-code:hover {
    background: #8b0a1f;
    transform: scale(1.05);
}

.npc-copy-code.npc-copied {
    background: #5cb85c;
    transform: scale(1.1);
}

.npc-copy-code .material-symbols-outlined {
    font-size: 1rem;
}

/* ===== Coupon Details ===== */
.npc-coupon-details {
    margin-bottom: 1.5rem;
}

.npc-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--npc-surface-variant);
    border-radius: 8px;
}

.npc-detail-item:last-child {
    margin-bottom: 0;
}

.npc-detail-item .material-symbols-outlined {
    font-size: 1.125rem;
    color: var(--npc-primary);
    flex-shrink: 0;
}

.npc-detail-item span:last-child {
    font-size: 0.875rem;
    color: var(--npc-on-surface);
}

/* ===== Buttons ===== */
.npc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--npc-transition);
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    font-family: 'Geologica', sans-serif;
}

.npc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--npc-transition);
}

.npc-btn:hover::before {
    left: 100%;
}

.npc-btn-primary {
    background: var(--npc-primary);
    color: white;
    box-shadow: var(--npc-shadow);
}

.npc-btn-primary:hover {
    background: #8b0a1f;
    transform: translateY(-2px);
    box-shadow: var(--npc-shadow-md);
}

.npc-use-coupon {
    background: var(--npc-gradient-success);
    color: white;
}

.npc-use-coupon:hover {
    background: linear-gradient(135deg, #4cae4c 0%, #449d44 100%);
}

/* ===== Animations ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.npc-coupon-card {
    animation: slideInUp 0.5s ease-out forwards;
}

/* Staggered animation delays */
.npc-coupon-card[data-delay="0"] { animation-delay: 0ms; }
.npc-coupon-card[data-delay="100"] { animation-delay: 100ms; }
.npc-coupon-card[data-delay="200"] { animation-delay: 200ms; }
.npc-coupon-card[data-delay="300"] { animation-delay: 300ms; }
.npc-coupon-card[data-delay="400"] { animation-delay: 400ms; }
.npc-coupon-card[data-delay="500"] { animation-delay: 500ms; }

/* ===== Responsive Design ===== */

/* Large desktops */
@media (min-width: 1200px) {
    .npc-coupons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Standard desktops and tablets landscape */
@media (min-width: 768px) and (max-width: 1199px) {
    .npc-coupons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Tablets portrait */
@media (max-width: 767px) {
    .npc-user-coupons {
        padding: 0 0.75rem;
    }
    
    .npc-coupons-header {
        padding: 1.75rem 1.25rem;
        margin-bottom: 1.75rem;
    }
    
    .npc-coupons-header h2 {
        font-size: 1.75rem;
    }
    
    .npc-coupons-header p {
        font-size: 0.9375rem;
    }
    
    .npc-coupons-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .npc-no-coupons {
        padding: 2.5rem 1.5rem;
    }
    
    .npc-no-coupons-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }
    
    .npc-no-coupons-icon .material-symbols-outlined {
        font-size: 2.25rem;
    }
    
    .npc-no-coupons h3 {
        font-size: 1.375rem;
    }
    
    .npc-no-coupons p {
        font-size: 0.9375rem;
    }
    
    .npc-coupon-header {
        padding: 1rem;
    }
    
    .npc-coupon-content {
        padding: 1.25rem;
    }
    
    .npc-coupon-code {
        padding: 0.875rem;
        gap: 0.625rem;
    }
    
    .npc-code-label {
        font-size: 0.8125rem;
    }
    
    .npc-code-value {
        font-size: 1rem;
    }
    
    .npc-detail-item {
        padding: 0.875rem;
    }
    
    .npc-detail-item .material-symbols-outlined {
        font-size: 1.0625rem;
    }
    
    .npc-detail-item span:last-child {
        font-size: 0.8125rem;
    }
    
    .npc-btn {
        padding: 0.875rem 1.125rem;
        font-size: 0.875rem;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 600px) {
    .npc-user-coupons {
        padding: 0 0.5rem;
    }
    
    .npc-coupons-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .npc-coupons-header h2 {
        font-size: 1.5rem;
    }
    
    .npc-coupons-header p {
        font-size: 0.875rem;
    }
    
    .npc-coupons-grid {
        gap: 1rem;
    }
    
    .npc-no-coupons {
        padding: 2rem 1.25rem;
    }
    
    .npc-no-coupons-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 1rem;
    }
    
    .npc-no-coupons-icon .material-symbols-outlined {
        font-size: 2rem;
    }
    
    .npc-no-coupons h3 {
        font-size: 1.25rem;
    }
    
    .npc-no-coupons p {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .npc-coupon-card {
        border-left-width: 3px;
    }
    
    .npc-coupon-header {
        padding: 0.875rem;
    }
    
    .npc-coupon-icon {
        width: 38px;
        height: 38px;
    }
    
    .npc-coupon-icon .material-symbols-outlined {
        font-size: 1.125rem;
    }
    
    .npc-status {
        font-size: 0.6875rem;
        padding: 0.3125rem 0.625rem;
    }
    
    .npc-coupon-content {
        padding: 1rem;
    }
    
    .npc-coupon-code {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .npc-code-label {
        font-size: 0.75rem;
    }
    
    .npc-code-value {
        font-size: 0.9375rem;
    }
    
    .npc-copy-code {
        padding: 0.5rem 0.625rem;
    }
    
    .npc-copy-code .material-symbols-outlined {
        font-size: 0.9375rem;
    }
    
    .npc-coupon-details {
        margin-bottom: 1.25rem;
    }
    
    .npc-detail-item {
        padding: 0.75rem;
        gap: 0.625rem;
    }
    
    .npc-detail-item .material-symbols-outlined {
        font-size: 1rem;
    }
    
    .npc-detail-item span:last-child {
        font-size: 0.75rem;
    }
    
    .npc-btn {
        padding: 0.875rem 1rem;
        font-size: 0.8125rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .npc-user-coupons {
        padding: 0 0.375rem;
    }
    
    .npc-coupons-header {
        padding: 1.25rem 0.875rem;
        margin-bottom: 1.25rem;
    }
    
    .npc-coupons-header h2 {
        font-size: 1.375rem;
    }
    
    .npc-coupons-header p {
        font-size: 0.8125rem;
    }
    
    .npc-coupons-grid {
        gap: 0.875rem;
    }
    
    .npc-no-coupons {
        padding: 1.75rem 1rem;
    }
    
    .npc-no-coupons-icon {
        width: 60px;
        height: 60px;
    }
    
    .npc-no-coupons-icon .material-symbols-outlined {
        font-size: 1.875rem;
    }
    
    .npc-no-coupons h3 {
        font-size: 1.125rem;
    }
    
    .npc-no-coupons p {
        font-size: 0.8125rem;
        margin-bottom: 1.25rem;
    }
    
    .npc-coupon-header {
        padding: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .npc-coupon-icon {
        width: 36px;
        height: 36px;
    }
    
    .npc-coupon-icon .material-symbols-outlined {
        font-size: 1.0625rem;
    }
    
    .npc-status {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }
    
    .npc-coupon-content {
        padding: 0.875rem;
    }
    
    .npc-coupon-code {
        padding: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .npc-code-label {
        font-size: 0.6875rem;
        width: 100%;
    }
    
    .npc-code-value {
        font-size: 0.875rem;
        width: 100%;
    }
    
    .npc-copy-code {
        padding: 0.5rem;
        width: 100%;
    }
    
    .npc-copy-code .material-symbols-outlined {
        font-size: 0.875rem;
    }
    
    .npc-coupon-details {
        margin-bottom: 1rem;
    }
    
    .npc-detail-item {
        padding: 0.625rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .npc-detail-item .material-symbols-outlined {
        font-size: 0.9375rem;
    }
    
    .npc-detail-item span:last-child {
        font-size: 0.6875rem;
    }
    
    .npc-btn {
        padding: 0.875rem;
        font-size: 0.8125rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .npc-user-coupons {
        padding: 0 0.25rem;
    }
    
    .npc-coupons-header {
        padding: 1rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .npc-coupons-header h2 {
        font-size: 1.25rem;
    }
    
    .npc-coupons-header p {
        font-size: 0.75rem;
    }
    
    .npc-coupons-grid {
        gap: 0.75rem;
    }
    
    .npc-no-coupons {
        padding: 1.5rem 0.875rem;
    }
    
    .npc-no-coupons-icon {
        width: 55px;
        height: 55px;
    }
    
    .npc-no-coupons-icon .material-symbols-outlined {
        font-size: 1.75rem;
    }
    
    .npc-no-coupons h3 {
        font-size: 1.0625rem;
    }
    
    .npc-no-coupons p {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .npc-coupon-card {
        border-left-width: 3px;
    }
    
    .npc-coupon-header {
        padding: 0.625rem;
    }
    
    .npc-coupon-icon {
        width: 34px;
        height: 34px;
    }
    
    .npc-coupon-icon .material-symbols-outlined {
        font-size: 1rem;
    }
    
    .npc-status {
        font-size: 0.5625rem;
        padding: 0.1875rem 0.375rem;
    }
    
    .npc-coupon-