/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #000;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 20px 0;
    background: #000;
    border-bottom: 1px solid #333;
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
}

.logo {
    height: 32px;
    width: auto;
}

/* Main Section */
.manage-section {
    padding: 60px 20px;
    background: #000;
    min-height: calc(100vh - 200px);
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-head h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.section-head p {
    font-size: 16px;
    color: #999;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Card */
.manage-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.field {
    margin-bottom: 24px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.field input {
    width: 100%;
    padding: 12px 16px;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.field input:focus {
    outline: none;
    border-color: #666;
}

.field-error {
    color: #ff4444;
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
}

.input-wrap {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.input-wrap .prefix {
    padding: 12px 8px 12px 16px;
    color: #999;
    font-size: 16px;
    font-weight: 500;
}

.input-wrap input {
    flex: 1;
    border: none;
    padding: 12px 16px 12px 0;
    background: transparent;
}

.cta-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Buttons */
.btn-primary {
    padding: 14px 28px;
    background: #000;
    color: #fff;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
    background: #1a1a1a;
    border-color: #444;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-ghost {
    padding: 14px 28px;
    background: transparent;
    color: #999;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.btn-ghost:hover {
    color: #fff;
    border-color: #555;
}

.btn-ghost:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Grid */
.results-grid {
    display: grid;
    gap: 24px;
}

/* Subscription Card */
.subscription-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 32px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 14px;
    color: #666;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #1a5a1a;
    color: #4ade80;
}

.status-badge.inactive {
    background: #5a1a1a;
    color: #f87171;
}

.status-badge.pending,
.status-badge.processing {
    background: #423a1a;
    color: #fbbf24;
}

.status-badge.completed {
    background: #1a5a1a;
    color: #4ade80;
}

.status-badge.failed,
.status-badge.canceled,
.status-badge.retried {
    background: #5a1a1a;
    color: #f87171;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px;
    background: #0a0a0a;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.card-actions .btn-primary,
.card-actions .btn-ghost {
    flex: 1;
    min-width: 150px;
}

/* Footer */
.footer {
    padding: 40px 20px;
    background: #000;
    border-top: 1px solid #333;
    margin-top: 60px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 12px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .section-head h1 {
        font-size: 32px;
    }
    
    .form-card {
        padding: 24px;
    }
    
    .subscription-card {
        padding: 24px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-stats {
        grid-template-columns: 1fr;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .card-actions .btn-primary,
    .card-actions .btn-ghost {
        width: 100%;
    }
    
    .cta-row {
        flex-direction: column;
    }
    
    .cta-row .btn-primary,
    .cta-row .btn-ghost {
        width: 100%;
    }
}

/* Cancel Modal */
.cancel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cancel-modal-content {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cancel-modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.cancel-modal-message {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.cancel-modal-message p {
    margin-bottom: 12px;
}

.cancel-modal-message strong {
    color: #fff;
    font-weight: 600;
}

.cancel-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel-modal-confirm {
    padding: 12px 24px;
    background: transparent;
    color: #fff;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-cancel-modal-confirm:hover {
    background: #1a1a1a;
    border-color: #555;
}

.btn-cancel-modal-cancel {
    padding: 12px 24px;
    background: #dc2626;
    color: #fff;
    border: 1px solid #dc2626;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-cancel-modal-cancel:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

@media (max-width: 768px) {
    .cancel-modal-content {
        padding: 24px;
    }
    
    .cancel-modal-actions {
        flex-direction: column-reverse;
    }
    
    .btn-cancel-modal-cancel,
    .btn-cancel-modal-confirm {
        width: 100%;
    }
}


