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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f2f2f2;
    background-image: linear-gradient(to bottom, #ffeaa7 0%, #fdcb6e 300px);
    color: #333;
    min-height: 100vh;
}

#header {
    background: #2b2b2b;
    background: linear-gradient(to bottom, #e74c3c 0%, #c0392b 100%);
    border-bottom: 3px solid #a93226;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

.tagline {
    color: #fff3cd;
    font-size: 13px;
    font-style: italic;
    flex-grow: 1;
}

.pro-badge {
    background: #f39c12;
    color: #2c3e50;
    font-weight: bold;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 0 5px #f39c12;
}

.pro-upgrade-btn {
    background: linear-gradient(to bottom, #f39c12, #e67e22) !important;
    border-color: #d35400 !important;
    color: #2c3e50 !important;
}

.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.panel-header {
    background: #e67e22;
    background: linear-gradient(to bottom, #f39c12 0%, #e67e22 50%, #d35400 51%, #e74c3c 100%);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px 8px 0 0;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.5);
    border: 1px solid #d35400;
}

.panel-body {
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

#dropzone {
    border: 2px dashed #f39c12;
    background: #fff9e6;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

#dropzone:hover {
    background: #fff3cd;
    border-color: #e67e22;
}

.upload-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

#dropzone p {
    font-size: 18px;
    font-weight: bold;
    color: #d35400;
}

#dropzone small {
    color: #e67e22;
}

.options-container {
    display: flex;
    justify-content: center;
    padding: 15px;
    background: #fff9e6;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    margin-top: 10px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-item label {
    font-size: 13px;
    font-weight: bold;
    color: #d35400;
}

.meister-select {
    padding: 5px;
    border: 1px solid #f39c12;
    border-radius: 3px;
    background: #fff;
    font-size: 13px;
    color: #d35400;
}

.ad-container-square {
    width: 250px;
    height: 250px;
    margin: 20px auto;
    background: #fff9e6;
    border: 1px solid #ffeaa7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mini-glossy-button {
    background: #e67e22;
    background: linear-gradient(to bottom, #f39c12 0%, #e67e22 50%, #d35400 51%, #e74c3c 100%);
    border: 1px solid #d35400;
    border-radius: 4px;
    color: white;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

/* Share button slightly smaller on mobile and aligned nicely in header */
#share-btn {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    display: inline-block;
}

.mini-glossy-button:hover {
    filter: brightness(1.1);
}

.glossy-button {
    background: #f39c12;
    background: linear-gradient(to bottom, #f1c40f 0%, #f39c12 50%, #e67e22 51%, #d35400 100%);
    border: 1px solid #d35400;
    border-radius: 5px;
    color: white;
    padding: 10px 25px;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    cursor: pointer;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
    display: block;
    margin: 20px auto 0;
}

.glossy-button:hover {
    filter: brightness(1.1);
}

/* Modal Styling */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.pro-features {
    margin: 20px 0;
    background: #fff9e6;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffeeba;
}

.pro-features ul {
    list-style: none;
}

.pro-features li {
    margin-bottom: 8px;
    font-size: 14px;
}

.purchase-box {
    text-align: center;
}

.purchase-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.purchase-btn {
    margin: 0;
    font-size: 14px;
    flex: 1;
}

.tip-btn {
    background: linear-gradient(to bottom, #f39c12 0%, #e67e22 50%, #d35400 51%, #e74c3c 100%) !important;
    border-color: #d35400 !important;
}

.key-activation {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.key-activation input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #f39c12;
    border-radius: 4px;
    text-align: center;
    font-family: monospace;
}

/* Results Styling */
.result-item {
    border-bottom: 1px solid #ffeaa7;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-item:last-child {
    border-bottom: none;
}

.result-preview {
    margin-bottom: 15px;
    max-width: 100%;
}

.result-preview img, .result-preview video {
    max-width: 100%;
    max-height: 300px;
    border: 1px solid #ffeaa7;
}

.share-links {
    width: 100%;
}

.link-group {
    margin-bottom: 10px;
}

.link-group label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: #e67e22;
    text-transform: uppercase;
}

.link-group input {
    width: 100%;
    padding: 6px;
    background: #fff9e6;
    border: 1px solid #ffeaa7;
    font-size: 12px;
}

/* Comments */
.comment-bubble {
    background: #fff9e6;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}

.tip-amount {
    display: block;
    font-size: 11px;
    color: #f39c12;
    font-weight: bold;
    margin-top: 5px;
}

#footer {
    text-align: center;
    padding: 40px 0;
    font-size: 12px;
    color: #e67e22;
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo { font-size: 22px; }
    .tagline { display: none; }
    .purchase-options { flex-direction: column; }
}