/* === AFFILIATE DASHBOARD - PREMIUM LOOK === */
.cas-dashboard-wrapper { max-width: 1300px; margin: 30px auto; font-family: 'Segoe UI', Tahoma, sans-serif; background: #f5f7fa; padding: 20px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.cas-dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.cas-dashboard-header h1 { margin:0; color:#2c3e50; font-size:28px; }
.cas-logout-btn { background:#e74c3c; color:white; padding:10px 20px; border-radius:8px; text-decoration:none; font-size:14px; }
.cas-logout-btn:hover { background:#c0392b; }

.cas-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 40px; }
.cas-stat-card { background: white; padding: 25px; border-radius: 14px; text-align: center; box-shadow: 0 8px 25px rgba(0,0,0,0.1); transition: all 0.3s; position:relative; overflow:hidden; }
.cas-stat-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.cas-stat-card .icon { font-size: 36px; margin-bottom: 10px; }

.cas-stat-card .value { font-size: 32px; font-weight: bold; color: #2c3e50; margin: 10px 0; }
.cas-stat-card .label { color: #7f8c8d; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

.cas-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 40px; }
@media (max-width: 992px) { .cas-grid-2 { grid-template-columns: 1fr; } }

.cas-card { background: white; padding: 30px; border-radius: 14px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.cas-card h3 { margin-top:0; color:#2c3e50; border-bottom:2px solid #e91e63; padding-bottom:10px; display:inline-block; }

.cas-ref-link { display: flex; margin: 15px 0; gap: 10px; }
.cas-ref-link input { flex: 1; padding: 14px; border: 2px solid #ddd; border-radius: 10px; font-size: 15px; }
.cas-copy-btn { background: #e91e63; color: white; border: none; padding: 0 20px; border-radius: 10px; cursor: pointer; font-weight: bold; }
.cas-copy-btn:hover { background: #c2185b; }
.cas-copy-btn.small { padding: 8px 15px; font-size: 12px; }

.cas-coupon-code { background: #f8e9ff; padding: 20px; border-radius: 12px; text-align: center; font-size: 20px; margin: 15px 0; }

.cas-btn-primary { background: #3498db; color: white; padding: 14px 24px; border: none; border-radius: 10px; cursor: pointer; font-size: 16px; font-weight: bold; }
.cas-btn-primary:hover { background: #2980b9; }

.cas-btn-payout { width: 100%; padding: 18px; font-size: 18px; border-radius: 12px; margin-top: 15px; }
.cas-btn-payout:not([disabled]) { background: #27ae60; }
.cas-btn-payout:not([disabled]):hover { background: #219a52; }
.cas-btn-payout[disabled] { background: #95a5a6; cursor: not-allowed; }

.cas-select, .cas-textarea { width: 100%; padding: 0px 14px !important; margin: 12px 0; border: 2px solid #ddd; border-radius: 10px; font-size: 15px; }
.cas-textarea { height: 100px; resize: vertical; }

.cas-section h3 { color:#2c3e50; margin: 40px 0 20px; font-size: 22px; }

.cas-table-wrapper { overflow-x: auto; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.cas-table { width: 100%; border-collapse: collapse; background: white; }
.cas-table th { background: #2c3e50; color: white; padding: 16px; text-align: left; font-weight: 600; }
.cas-table td { padding: 14px 16px; border-bottom: 1px solid #eee; }
.cas-table tr:hover { background: #f8f9fa; }
.cas-status { padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; text-transform: uppercase; }
.cas-status.pending { background: #fff3cd; color: #856404; }
.cas-status.approved, .cas-status.paid { background: #d4edda; color: #155724; }
.cas-status.requested { background: #d1ecf1; color: #0c5460; }

code { background: #f1f1f1; padding: 2px 8px; border-radius: 4px; font-size: 13px; }
small { color: #7f8c8d; }

@media (max-width: 768px) {
    .cas-dashboard-wrapper { padding: 15px; margin: 10px; }
    .cas-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cas-dashboard-header { flex-direction: column; text-align: center; gap: 15px; }
}




/* ========================================= */
/* AFFILIATE REGISTRATION & OTP FORM - PREMIUM */
/* ========================================= */

.cas-auth-wrapper {
    min-height: 100vh;
  
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
}

.cas-auth-container {
    background: white;
    max-width: 800px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.cas-auth-header {
    background: #1d5bc1;
    color: white;
    text-align: center;
    padding: 40px 30px;
}

.cas-auth-header h2 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 700;
	color:white;
}

.cas-auth-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
}

.cas-form {
    padding: 40px 35px;
}

.cas-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.cas-form-grid input,
.cas-form-grid select {
    grid-column: span 2;
}

.cas-form-grid input:nth-child(1),
.cas-form-grid input:nth-child(2),
.cas-form-grid input:nth-child(3),
.cas-form-grid input:nth-child(4) {
/*     grid-column: span 1; */
}

@media (max-width: 600px) {
    .cas-form-grid {
        grid-template-columns: 1fr;
    }
    .cas-form-grid input,
    .cas-form-grid select {
        grid-column: span 1 !important;
    }
}

.cas-input,
.cas-form select {
    width: 100%;
    padding: 0px 16px !important;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fafafa;
}

.cas-input:focus,
.cas-form select:focus {
    outline: none;
    border-color: #e91e63;
    background: white;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.cas-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 14px;
    color: #555;
}

.cas-checkbox input {
    width: auto;
    transform: scale(1.3);
}

.cas-checkbox a {
    color: #1d5bc1;
    text-decoration: underline;
}

.cas-btn-primary {
    background: #1d5bc1;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 40%;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.full-width { width: 100%; }

.cas-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(233, 30, 99, 0.4);
}

.cas-btn-primary:active {
    transform: translateY(0);
}

.cas-login-link {
    text-align: center;
    margin-top: 25px;
    color: #777;
    font-size: 15px;
}

.cas-login-link a {
    color: #1d5bc1;
    font-weight: 600;
    text-decoration: none;
}

.cas-login-link a:hover {
    text-decoration: underline;
}

/* Success Message After Registration */
.cas-success-box {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #c3e6cb;
}

.cas-success-box a {
    color: #e91e63;
    font-weight: bold;
    text-decoration: underline;
}

/* OTP Form (shown after registration) */
#otp-form {
    margin-top: 20px;
    text-align: center;
}

#otp-form input[type="text"] {
    font-size: 24px;
    letter-spacing: 10px;
    text-align: center;
    padding: 20px;
    width: 280px;
    max-width: 100%;
    border: 2px solid #ddd;
    border-radius: 12px;
}

#otp-form button {
    margin-top: 15px;
    padding: 16px 40px;
    font-size: 18px;
}

/* Error & Success Alerts */
.cas-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
    text-align: center;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* AFFILIATE LOGIN PAGE - SAME BEAUTIFUL DESIGN */
.cas-auth-header h2 { font-size: 28px; margin: 0 0 8px; }
.cas-auth-header p  { opacity: 0.95; font-size: 16px; }

.cas-form input[type="text"],
.cas-form input[type="password"] {
    margin-bottom: 16px;
}

.cas-form .cas-checkbox {
    margin: 20px 0;
    justify-content: flex-start;
}