/* Owlet SMM Plugin Styles - Enhanced */
.owlet-admin-wrap { max-width: 1200px; }
.owlet-grid { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; margin: 2rem 0; }
.owlet-panel { background: #fff; padding: 2rem; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); margin-bottom: 2rem; }
.owlet-panel.balance { text-align: center; background: linear(135deg, #667eea 0%, #764ba2 100%); color: white; }
.owlet-panel.balance .amt { font-size: 2.5rem; font-weight: bold; margin: 1rem 0; }
.owlet-panel.balance small { opacity: 0.9; }

.field { display: block; margin: 1.5rem 0; }
.field span { display: block; font-weight: 600; margin-bottom: 0.5rem; color: #2c3338; }
.field input, .field select { width: 100%; padding: 12px; border: 2px solid #e1e5e9; border-radius: 8px; font-size: 14px; transition: all 0.3s ease; }
.field input:focus, .field select:focus { border-color: #667eea; outline: none; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); }
.field small { display: block; margin-top: 0.5rem; color: #666; font-size: 12px; }

.switch { display: flex; justify-content: space-between; align-items: center; }
.switch input[type="checkbox"] { transform: scale(1.2); }

.tier-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.tier-grid > div { background: #f8f9fa; padding: 1.5rem; border-radius: 8px; border-left: 4px solid #667eea; }
.tier-grid label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 13px; color: #555; }
.tier-grid input { margin-bottom: 1rem; }

.actions { display: flex; gap: 1rem; margin: 1.5rem 0; }
#action-result { margin: 1rem 0; padding: 1rem; border-radius: 6px; }

.shorts, .tips { list-style: none; padding: 0; margin: 1.5rem 0; }
.shorts li, .tips li { padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; }
.shorts code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.tips li { padding-left: 1.5rem; position: relative; }
.tips li:before { content: "💡"; position: absolute; left: 0; }

/* Frontend Styles - Enhanced */
.owlet-alert { padding: 1rem 1.5rem; border-radius: 10px; margin: 1rem 0; border-left: 4px solid; }
.owlet-alert-note { background: #e3f2fd; border-color: #2196f3; color: #1565c0; }
.owlet-alert-error { background: #ffebee; border-color: #f44336; color: #c62828; }

.owlet-balance-card { 
    background: linear(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 2rem; 
    border-radius: 16px; 
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
.owlet-balance-card .amt { font-size: 2.5rem; font-weight: bold; margin-bottom: 0.5rem; }

/* Services Grid - Enhanced */
.owlet-services { display: grid; gap: 1.5rem; margin: 2rem 0; }
.owlet-cols-1 { grid-template-columns: 1fr; }
.owlet-cols-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.owlet-cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.owlet-cols-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.owlet-category-header { 
    grid-column: 1 / -1; 
    margin: 3rem 0 1rem 0; 
    padding-bottom: 1rem; 
    border-bottom: 3px solid #667eea; 
}
.category-title { 
    color: #2c3338; 
    font-size: 1.5rem; 
    margin: 0; 
    display: flex; 
    align-items: center; 
    gap: 1rem;
}
.category-title:before {
    content: "📁";
    font-size: 1.2rem;
}

.owlet-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}
.owlet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.owlet-card-head {
    background: linear(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: between;
    align-items: start;
    gap: 1rem;
}
.owlet-card-head h4 { 
    margin: 0; 
    flex: 1; 
    font-size: 1.1rem;
    line-height: 1.4;
}
.chip {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.owlet-card-body {
    padding: 1.5rem;
}

.price-1000 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3338;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.price-1000 span { 
    color: #667eea; 
    font-size: 1rem;
}
.price-1000 em { 
    font-size: 0.9rem; 
    font-weight: normal; 
    color: #666; 
    font-style: normal;
}

.price-hint {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.limits {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}
.limits b { color: #2c3338; }

.service-info {
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.service-info ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}
.service-info li {
    margin: 0.25rem 0;
}

/* Order Form - Enhanced */
.owlet-order { max-width: 800px; margin: 2rem auto; }
.owlet-form { background: white; padding: 2.5rem; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.row { margin-bottom: 2rem; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.row label { display: block; font-weight: 600; margin-bottom: 0.75rem; color: #2c3338; font-size: 1rem; }
.row input, .row select { 
    width: 100%; 
    padding: 14px; 
    border: 2px solid #e1e5e9; 
    border-radius: 10px; 
    font-size: 15px; 
    transition: all 0.3s ease;
    background: #fff;
}
.row input:focus, .row select:focus { 
    border-color: #667eea; 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); 
    background: #fafbff;
}

.sticky-total {
    background: linear(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    position: sticky;
    top: 2rem;
}
.sticky-total div { font-size: 0.9rem; opacity: 0.9; margin-bottom: 0.5rem; }
.sticky-total strong { font-size: 1.5rem; display: block; }

.muted { color: #666; font-size: 0.85rem; margin-top: 0.5rem; }
.help { display: block; margin-top: 0.5rem; color: #667eea; font-size: 0.85rem; }

.owlet-btn {
    background: linear(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.owlet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}
.owlet-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.owlet-btn.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.owlet-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 10px;
    font-weight: 500;
}
.owlet-result.ok { background: #e8f5e8; color: #2e7d32; border-left: 4px solid #4caf50; }
.owlet-result.err { background: #ffebee; color: #c62828; border-left: 4px solid #f44336; }

/* Order Status */
.owlet-status { max-width: 500px; margin: 2rem auto; }
.owlet-form.mini .row { display: flex; gap: 1rem; align-items: end; }
.owlet-form.mini .row label { margin-bottom: 0.5rem; }
.owlet-form.mini .owlet-btn { width: auto; padding: 14px 24px; }

.status-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #e1e5e9;
}
.status-card .line {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.status-card .line:last-child { border-bottom: none; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .owlet-grid { grid-template-columns: 1fr; }
    .tier-grid { grid-template-columns: 1fr; }
    .row.two { grid-template-columns: 1fr; }
    .owlet-cols-2, .owlet-cols-3, .owlet-cols-4 { grid-template-columns: 1fr; }
    .owlet-form { padding: 1.5rem; }
    .owlet-form.mini .row { flex-direction: column; align-items: stretch; }
}

/* Enhanced form styles */
.price-display {
    background: linear(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin: 1rem 0;
}

.price-display small {
    opacity: 0.9;
    font-size: 0.85rem;
}

.service-info-card {
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.service-info-header {
    color: #e65100;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.service-info-body {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.limits-display {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.limit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.limit-error {
    color: #f44336 !important;
    border-color: #f44336 !important;
}

/* Loading animation */
.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result messages */
#order-result {
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    display: none;
}

#order-result.success {
    background: #e8f5e8;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

#order-result.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .limits-display {
        flex-direction: column;
        gap: 0.5rem;
    }
}