/**
 * Pluginoo Frontend Styles
 * Authorization Page Styles
 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.pluginoo-auth-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.5;
}

.auth-wrapper {
    width: 100%;
    max-width: 600px;
}

.auth-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    overflow: hidden;
}

/* Header */
.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 30px;
    text-align: center;
}

.product-logo {
    margin-bottom: 15px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    font-size: 32px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.auth-header p {
    opacity: 0.9;
    font-size: 15px;
}

/* Body */
.auth-body {
    padding: 30px;
}

/* User Card */
.user-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.user-avatar img {
    border-radius: 50%;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details strong {
    font-size: 16px;
    color: #333;
}

.user-details span {
    font-size: 14px;
    color: #666;
}

/* Domain Card */
.domain-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    margin-bottom: 20px;
}

.domain-icon {
    font-size: 32px;
}

.domain-text {
    display: flex;
    flex-direction: column;
}

.domain-text .label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domain-text strong {
    font-size: 18px;
    color: #333;
    word-break: break-all;
}

/* Subscription Card */
.subscription-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.subscription-card.active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
}

.subscription-card.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 2px solid #ffc107;
}

.sub-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
}

.subscription-card.active .sub-icon {
    background: #28a745;
    color: #fff;
}

.subscription-card.warning .sub-icon {
    background: #ffc107;
    color: #333;
}

.sub-details {
    flex: 1;
}

.sub-details strong {
    display: block;
    font-size: 16px;
    color: #333;
}

.sub-details span {
    font-size: 14px;
    color: #666;
}

/* Usage Card */
.usage-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.usage-header span {
    color: #666;
    font-size: 14px;
}

.usage-header strong {
    color: #333;
    font-size: 16px;
}

.usage-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.usage-text {
    font-size: 13px;
    color: #888;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-info {
    background: #e7f1ff;
    border: 1px solid #b6d4fe;
    color: #0a58ca;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

.alert strong {
    display: block;
    margin-bottom: 5px;
}

.alert p {
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading .btn-text {
    visibility: hidden;
}

.btn.loading .btn-loader {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-loader {
    display: none;
}

.btn.loading .btn-loader {
    display: block;
}

.btn {
    position: relative;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Step Sections */
.step-section {
    display: none;
}

.step-section.active {
    display: block;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.package-card {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.packages-grid.view-only .package-card {
    cursor: default;
}

.package-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.package-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.package-header h4 {
    font-size: 17px;
    color: #333;
    margin: 0;
}

.package-price {
    text-align: right;
}

.package-price .currency {
    font-size: 16px;
    color: #667eea;
    vertical-align: top;
}

.package-price .amount {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

.package-price .price-usd {
    display: block;
}

.package-price .price-bdt {
    display: block;
    font-size: 13px;
    color: #2563eb;
    font-weight: 500;
}

.package-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.feature-icon {
    font-size: 16px;
}

.package-check {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.package-card.selected .package-check {
    background: #667eea;
    border-color: #667eea;
}

.checkmark {
    color: transparent;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.package-card.selected .checkmark {
    color: #fff;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.payment-method.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.method-icon {
    font-size: 36px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon img {
    max-height: 40px;
    max-width: 80px;
    object-fit: contain;
}

.method-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.method-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.method-check span {
    color: transparent;
    font-size: 12px;
    font-weight: 700;
}

.payment-method.selected .method-check {
    background: #667eea;
    border-color: #667eea;
}

.payment-method.selected .method-check span {
    color: #fff;
}

/* Payment Info */
.payment-info {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.payment-details-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.payment-details-card h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row.highlight {
    background: #fff3cd;
    margin: 10px -10px -10px;
    padding: 15px 10px;
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}

.detail-label {
    color: #666;
    font-size: 14px;
}

.detail-value {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-value.copyable {
    cursor: pointer;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.copy-btn:hover {
    background: rgba(0,0,0,0.1);
}

.payment-instructions {
    background: #e7f1ff;
    border-radius: 8px;
    padding: 15px;
}

.payment-instructions p {
    margin: 0;
    color: #0a58ca;
    font-size: 14px;
}

/* Transaction Input */
.transaction-section {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group .required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.15);
}

.form-control::placeholder {
    color: #aaa;
}

/* Step Buttons */
.step-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.step-buttons .btn-secondary {
    flex: 0 0 auto;
}

.step-buttons .btn-primary {
    flex: 1;
}

/* Success Card */
.success-card {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.success-card h3 {
    font-size: 24px;
    color: #28a745;
    margin-bottom: 10px;
}

.success-card p {
    color: #666;
    font-size: 15px;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #667eea;
}

/* Powered By */
.powered-by {
    text-align: center;
    margin-top: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.powered-by a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.powered-by a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-header {
        padding: 30px 20px;
    }
    
    .auth-body {
        padding: 20px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .package-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .package-price {
        text-align: left;
    }
    
    .package-price .amount {
        font-size: 24px;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .step-buttons {
        flex-direction: column-reverse;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Exchange Rate Info */
.exchange-rate-info {
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    background: #f0f4ff;
    border-radius: 6px;
}

.exchange-rate-info small {
    color: #666;
    font-size: 12px;
}

.exchange-rate-info .rate-display {
    font-weight: 600;
    color: #667eea;
}

/* BDT Amount Highlight */
.detail-row.highlight.bdt-amount {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.detail-row.highlight.bdt-amount .detail-label {
    color: rgba(255,255,255,0.9);
}

.detail-row.highlight.bdt-amount .detail-value {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}
