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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #340065;
    color: #fff;
    min-height: 100vh;
    line-height: 1.6;
}

/* Instruction Container */
.instruction-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 20px;
    background: rgba(251, 211, 12, 0.1);
    border-radius: 15px;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #fbd30c;
    font-weight: bold;
}

.header p {
    font-size: 16px;
    color: #fff;
}

/* Steps */
.steps {
    margin-bottom: 30px;
}

.step {
    background: rgba(251, 211, 12, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid rgba(251, 211, 12, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 211, 12, 0.15);
    background: rgba(251, 211, 12, 0.12);
}

.step.active {
    border-color: #fbd30c;
    background: rgba(251, 211, 12, 0.15);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #fbd30c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #340065;
}

.step-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #fbd30c;
    margin: 0;
}

.step-description {
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 12px;
    padding-left: 48px;
}

.step-description strong {
    color: #fbd30c;
    font-weight: 600;
}

.step-image {
    margin-top: 10px;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.step-image.show {
    max-height: 800px;
    opacity: 1;
    margin-top: 15px;
}

.step-image img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    border: 2px solid rgba(251, 211, 12, 0.3);
}

.step-toggle-icon {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #fbd30c;
    transition: all 0.3s ease;
}

.step-toggle-icon .arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.step.active .step-toggle-icon .arrow {
    transform: rotate(180deg);
}

/* Icon Preview */
.icon-preview {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(251, 211, 12, 0.1);
    border-radius: 10px;
}

.icon-preview img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(251, 211, 12, 0.3);
}

.icon-preview span {
    font-size: 14px;
    color: #fbd30c;
    font-weight: 600;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-primary {
    flex: 1;
    min-width: 200px;
    padding: 16px 30px;
    background: #fbd30c;
    color: #340065;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(251, 211, 12, 0.4);
}

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

.btn-secondary {
    flex: 1;
    min-width: 200px;
    padding: 16px 30px;
    background: transparent;
    color: #fbd30c;
    border: 2px solid #fbd30c;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #fbd30c;
    color: #340065;
}

/* Info Box */
.info-box {
    background: rgba(251, 211, 12, 0.1);
    border: 2px solid rgba(251, 211, 12, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-box h4 {
    color: #fbd30c;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #fff;
}

.info-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #fbd30c;
    font-weight: bold;
}

/* Warning Box */
.warning-box {
    background: rgba(255, 100, 100, 0.1);
    border: 2px solid rgba(255, 100, 100, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.warning-box p {
    color: #ffaaaa;
    margin: 0;
    font-size: 14px;
}

.warning-box strong {
    color: #ff8888;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 26px;
    }

    .header p {
        font-size: 14px;
    }

    .step {
        flex-direction: column;
        padding: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .step-content h3 {
        font-size: 18px;
    }

    .step-content p {
        font-size: 14px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        min-width: 100%;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Logo */
.page-logo {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-logo img {
    width: 120px;
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Safari Warning */
.browser-warning {
    background: rgba(255, 152, 0, 0.15);
    border: 2px solid #ff9800;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.browser-warning h3 {
    color: #ff9800;
    margin-bottom: 15px;
}

.browser-warning p {
    color: #fff;
    margin-bottom: 10px;
}

.btn-safari {
    background: #007AFF;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-safari:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.4);
}

/* Device Mismatch Banner */
.device-mismatch-banner {
    background: rgba(251, 211, 12, 0.15);
    border: 2px solid #fbd30c;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.device-mismatch-banner p {
    color: #fff;
    margin-bottom: 10px;
}

/* Safari Modal */
.safari-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-in;
}

.safari-modal-content {
    background: #340065;
    border: 3px solid #fbd30c;
    border-radius: 15px;
    padding: 20px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(251, 211, 12, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.safari-modal-logo {
    margin-bottom: 15px;
}

.safari-modal-logo img {
    width: 80px;
    max-width: 50%;
    height: auto;
    margin: 0 auto;
}

.safari-modal-content h2 {
    color: #fbd30c;
    font-size: 20px;
    margin-bottom: 15px;
}

.safari-modal-steps {
    background: rgba(251, 211, 12, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
}

.safari-modal-steps p {
    color: #fbd30c;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.safari-modal-steps ol {
    color: #fff;
    padding-left: 20px;
    line-height: 1.6;
}

.safari-modal-steps li {
    margin-bottom: 8px;
    font-size: 13px;
}

.safari-modal-steps strong {
    color: #fbd30c;
}
