/* styles.css - Compatible with DirectAdmin */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.bx-guides {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.theme-light {
    background: #f5f7fa;
}

.custom-wrap {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.custom-header {
    background: linear-gradient(135deg, #43b8ff 0%, #0080FF 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.logo {
    width: 120px;
    height: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.custom-content {
    position: relative;
    min-height: 60vh;
}

/* Loading Animation */
.PreLander {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
    padding: 40px;
    text-align: center;
}

.PreLander.hidden {
    opacity: 0;
    pointer-events: none;
}

.PreLander h1 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.cog-loader {
    width: 80px;
    height: 80px;
    margin: 20px 0;
}

.SmallCog, .BigCog {
    animation: spin 3s linear infinite;
    transform-origin: center;
}

.SmallCog {
    animation-direction: reverse;
    animation-duration: 2s;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bar {
    width: 200px;
    height: 4px;
    background: #e0e6f7;
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #43b8ff, #0080FF);
    border-radius: 2px;
    width: 0%;
    animation: loadProgress 3s ease-in-out;
}

@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

.PreLander p {
    color: #666;
    margin-top: 10px;
}

.custom-holder {
    padding: 40px 30px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.custom-holder.visible {
    opacity: 1;
}

.downloadIcon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: block;
    animation: bounceIn 1s ease 0.5s both;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.msisdnLabel {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.3;
    text-align: center;
}

.phone-input {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8faff;
    border: 2px solid #e1e8f0;
    border-radius: 12px;
    padding: 0 20px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.phone-input:focus-within {
    border-color: #43b8ff;
    background: white;
    box-shadow: 0 0 0 3px rgba(67, 184, 255, 0.1);
}

.phone {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone svg {
    width: 24px;
    height: 24px;
    fill: #43b8ff;
    transition: all 0.3s ease;
}

.text-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 15px 0;
    outline: none;
    color: #333;
}

.text-input::placeholder {
    color: #999;
}

.checkmark-container {
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkmark-container.show {
    opacity: 1;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%234CAF50" viewBox="0 0 24 24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat center;
}

.button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #43b8ff 0%, #0080FF 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 184, 255, 0.3);
}

.steps-wrapper {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e1e8f0;
    text-align: center;
}

.steps-wrapper ul {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
    counter-reset: step-counter;
}

.steps-wrapper li {
    position: relative;
    padding: 12px 0 12px 35px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.steps-wrapper li:before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 12px;
    width: 20px;
    height: 20px;
    background: #43b8ff;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-footer {
    padding: 30px;
    background: #f8faff;
    border-top: 1px solid #e1e8f0;
    margin-top: auto;
}

.disclaimer {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e1e8f0;
}

/* Responsive */
@media (max-width: 480px) {
    .custom-wrap {
        margin: 0;
        border-radius: 0;
    }
    
    .custom-header, .custom-holder, .custom-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}